From 9e9c2df78c70c034635583a28b5a9c9aa222bd39 Mon Sep 17 00:00:00 2001 From: S4NKALP Date: Sat, 9 May 2026 13:28:51 +0545 Subject: [PATCH] update --- nvim-pack-lock.json | 6 +-- plugin/01-lsp.lua | 120 ++++++++++++++++++++++---------------------- 2 files changed, 62 insertions(+), 64 deletions(-) diff --git a/nvim-pack-lock.json b/nvim-pack-lock.json index dbf4af5..ed53c2f 100644 --- a/nvim-pack-lock.json +++ b/nvim-pack-lock.json @@ -66,8 +66,7 @@ }, "mason-lspconfig.nvim": { "rev": "1423254f58a3407a5afd5ade0ccd901f3eecc6ba", - "src": "https://github.com/mason-org/mason-lspconfig.nvim", - "version": "'main'" + "src": "https://github.com/mason-org/mason-lspconfig.nvim" }, "mason-nvim-lint": { "rev": "cafbc5d82d8eb4af0daf0057332a325ddf2f436b", @@ -75,8 +74,7 @@ }, "mason.nvim": { "rev": "cb8445f8ce85d957416c106b780efd51c6298f89", - "src": "https://github.com/mason-org/mason.nvim", - "version": "'main'" + "src": "https://github.com/mason-org/mason.nvim" }, "mdx.nvim": { "rev": "6c3dc7c4a4b58b5d86404c21a9b4655282ca08c5", diff --git a/plugin/01-lsp.lua b/plugin/01-lsp.lua index 470c893..25bc25b 100644 --- a/plugin/01-lsp.lua +++ b/plugin/01-lsp.lua @@ -1,74 +1,74 @@ add({ - { src = "mason-org/mason.nvim", version = "main" }, -- lsp installer manager - { src = "mason-org/mason-lspconfig.nvim", version = "main" }, -- lsp installer - "neovim/nvim-lspconfig", -- lsp config - "nvimdev/Lspsaga.nvim", -- lsp ui - "rachartier/tiny-inline-diagnostic.nvim", -- inline diagnostic - "rachartier/tiny-code-action.nvim", -- code action + 'mason-org/mason.nvim', -- lsp installer manager + 'mason-org/mason-lspconfig.nvim', -- lsp installer + 'neovim/nvim-lspconfig', -- lsp config + 'nvimdev/Lspsaga.nvim', -- lsp ui + 'rachartier/tiny-inline-diagnostic.nvim', -- inline diagnostic + 'rachartier/tiny-code-action.nvim', -- code action }) -- lsp installer -require("mason").setup({ - ui = { - icons = { - package_installed = "✓", - package_pending = "➜", - package_uninstalled = "✗", - }, - border = "rounded", - backdrop = 100, - }, +require('mason').setup({ + ui = { + icons = { + package_installed = '✓', + package_pending = '➜', + package_uninstalled = '✗', + }, + border = 'rounded', + backdrop = 100, + }, }) -require("mason-lspconfig").setup({ - ensure_installed = require("extensions").lsp_server, - automatic_installation = false, -- Don't auto-install or auto-configure +require('mason-lspconfig').setup({ + ensure_installed = require('extensions').lsp_server, + automatic_installation = false, -- Don't auto-install or auto-configure }) -- improve neovim lsp experience -vim.api.nvim_create_autocmd("LspAttach", { - callback = function() - require("lspsaga").setup({ - ui = { - theme = "round", - border = "rounded", - devicon = true, - title = true, - winblend = 1, - expand = " ", - collapse = " ", - preview = "", - code_action = "󰠠 ", - diagnostic = " ", - incoming = " ", - outgoing = " ", - hover = " ", - }, - }) +vim.api.nvim_create_autocmd('LspAttach', { + callback = function() + require('lspsaga').setup({ + ui = { + theme = 'round', + border = 'rounded', + devicon = true, + title = true, + winblend = 1, + expand = ' ', + collapse = ' ', + preview = '', + code_action = '󰠠 ', + diagnostic = ' ', + incoming = ' ', + outgoing = ' ', + hover = ' ', + }, + }) - --inline diagnostic - require("tiny-inline-diagnostic").setup({ - options = { - show_source = true, - multiple_diag_under_cursor = true, - }, - }) + --inline diagnostic + require('tiny-inline-diagnostic').setup({ + options = { + show_source = true, + multiple_diag_under_cursor = true, + }, + }) - --code action - require("tiny-code-action").setup({ - picker = { - "buffer", - opts = { - auto_preview = true, - hotkeys = true, - hotkeys_mode = "sequential", - }, - }, - }) - end, + --code action + require('tiny-code-action').setup({ + picker = { + 'buffer', + opts = { + auto_preview = true, + hotkeys = true, + hotkeys_mode = 'sequential', + }, + }, + }) + end, }) vim.diagnostic.config({ virtual_text = false }) -- Disable default virtual text -vim.keymap.set("n", ".", function() - require("tiny-code-action").code_action() -end, { desc = "Code action" }) +vim.keymap.set('n', '.', function() + require('tiny-code-action').code_action() +end, { desc = 'Code action' })