From 258d59bdf9639bc8c2514cb70ec11f9c4a6e0210 Mon Sep 17 00:00:00 2001 From: Kulvir Singh Date: Sat, 14 Sep 2024 18:53:19 +0530 Subject: [PATCH] updated ts lsp alias + nvim theme --- nvim/lua/lilJ/plugins/carbonfox.lua | 27 +++++++++++++++ nvim/lua/lilJ/plugins/catppuccin.lua | 52 ++++++++++++++-------------- nvim/lua/lilJ/plugins/lsp.lua | 2 +- 3 files changed, 54 insertions(+), 27 deletions(-) create mode 100644 nvim/lua/lilJ/plugins/carbonfox.lua diff --git a/nvim/lua/lilJ/plugins/carbonfox.lua b/nvim/lua/lilJ/plugins/carbonfox.lua new file mode 100644 index 0000000..bf758e2 --- /dev/null +++ b/nvim/lua/lilJ/plugins/carbonfox.lua @@ -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, +} diff --git a/nvim/lua/lilJ/plugins/catppuccin.lua b/nvim/lua/lilJ/plugins/catppuccin.lua index f91179b..8018c17 100644 --- a/nvim/lua/lilJ/plugins/catppuccin.lua +++ b/nvim/lua/lilJ/plugins/catppuccin.lua @@ -1,28 +1,28 @@ return { - "catppuccin/nvim", - name = "catpuccin", - priority = 1000, - lazy = false, - init = function() - require("catppuccin").setup { - transparent_background = true, - } - vim.cmd.colorscheme "catppuccin" - - 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, + -- "catppuccin/nvim", + -- name = "catpuccin", + -- priority = 1000, + -- lazy = false, + -- init = function() + -- require("catppuccin").setup { + -- transparent_background = true, + -- } + -- vim.cmd.colorscheme "catppuccin" + -- + -- 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, } diff --git a/nvim/lua/lilJ/plugins/lsp.lua b/nvim/lua/lilJ/plugins/lsp.lua index de09184..201a6c0 100644 --- a/nvim/lua/lilJ/plugins/lsp.lua +++ b/nvim/lua/lilJ/plugins/lsp.lua @@ -51,7 +51,7 @@ return { }, }, pyright = {}, - tsserver = {}, + ts_ls = {}, tailwindcss = { filetypes = { "html", "css", "typescript", "typescriptreact" }, },