updated ts lsp alias + nvim theme

This commit is contained in:
Kulvir Singh
2024-09-14 18:53:19 +05:30
parent 4b75896bde
commit 258d59bdf9
3 changed files with 54 additions and 27 deletions

View File

@@ -0,0 +1,27 @@
return {
"EdenEast/nightfox.nvim",
lazy = false,
priority = 1000,
init = function()
require("nightfox").setup {
transparent_background = true,
}
vim.cmd.colorscheme "carbonfox"
vim.cmd.hi "Comment gui=none"
vim.api.nvim_set_hl(0, "Normal", { bg = "none" })
vim.api.nvim_set_hl(0, "NormalFloat", { bg = "none" })
vim.lsp.handlers["textDocument/hover"] = vim.lsp.with(vim.lsp.handlers.hover, {
border = "rounded",
})
vim.lsp.handlers["textDocument/signatureHelp"] = vim.lsp.with(vim.lsp.handlers.signature_help, {
border = "rounded",
})
vim.diagnostic.config {
float = { border = "rounded" },
}
end,
}

View File

@@ -1,28 +1,28 @@
return { return {
"catppuccin/nvim", -- "catppuccin/nvim",
name = "catpuccin", -- name = "catpuccin",
priority = 1000, -- priority = 1000,
lazy = false, -- lazy = false,
init = function() -- init = function()
require("catppuccin").setup { -- require("catppuccin").setup {
transparent_background = true, -- transparent_background = true,
} -- }
vim.cmd.colorscheme "catppuccin" -- vim.cmd.colorscheme "catppuccin"
--
vim.cmd.hi "Comment gui=none" -- vim.cmd.hi "Comment gui=none"
vim.api.nvim_set_hl(0, "Normal", { bg = "none" }) -- vim.api.nvim_set_hl(0, "Normal", { bg = "none" })
vim.api.nvim_set_hl(0, "NormalFloat", { bg = "none" }) -- vim.api.nvim_set_hl(0, "NormalFloat", { bg = "none" })
--
vim.lsp.handlers["textDocument/hover"] = vim.lsp.with(vim.lsp.handlers.hover, { -- vim.lsp.handlers["textDocument/hover"] = vim.lsp.with(vim.lsp.handlers.hover, {
border = "rounded", -- border = "rounded",
}) -- })
--
vim.lsp.handlers["textDocument/signatureHelp"] = vim.lsp.with(vim.lsp.handlers.signature_help, { -- vim.lsp.handlers["textDocument/signatureHelp"] = vim.lsp.with(vim.lsp.handlers.signature_help, {
border = "rounded", -- border = "rounded",
}) -- })
--
vim.diagnostic.config { -- vim.diagnostic.config {
float = { border = "rounded" }, -- float = { border = "rounded" },
} -- }
end, -- end,
} }

View File

@@ -51,7 +51,7 @@ return {
}, },
}, },
pyright = {}, pyright = {},
tsserver = {}, ts_ls = {},
tailwindcss = { tailwindcss = {
filetypes = { "html", "css", "typescript", "typescriptreact" }, filetypes = { "html", "css", "typescript", "typescriptreact" },
}, },