1
0
mirror of https://github.com/sameer1612/.dotfiles.git synced 2024-11-19 18:01:53 +02:00

moved lspsaga mapping to mappings file

This commit is contained in:
Sameer Kumar 2024-10-14 14:45:58 +05:30
parent 22071f2a8c
commit 112c4fc59e
4 changed files with 15 additions and 22 deletions

View File

@ -1,7 +1,7 @@
{
"LuaSnip": { "branch": "master", "commit": "e808bee352d1a6fcf902ca1a71cee76e60e24071" },
"NvChad": { "branch": "v2.5", "commit": "f6025f0788880989484733c90deff07dff01ef02" },
"base46": { "branch": "v2.5", "commit": "177af7c0e492f6332bf78675a47b8983b1a32291" },
"base46": { "branch": "v2.5", "commit": "fec9fa583025e69e0c4f902bd61990e8d13d1975" },
"cmp-buffer": { "branch": "main", "commit": "3022dbc9166796b644a841a02de8dd1cc1d311fa" },
"cmp-nvim-lsp": { "branch": "main", "commit": "39e2eda76828d88b773cc27a3f61d2ad782c922d" },
"cmp-nvim-lua": { "branch": "main", "commit": "f12408bdb54c39c23e67cab726264c10db33ada8" },
@ -12,7 +12,7 @@
"friendly-snippets": { "branch": "main", "commit": "de8fce94985873666bd9712ea3e49ee17aadb1ed" },
"gitsigns.nvim": { "branch": "main", "commit": "863903631e676b33e8be2acb17512fdc1b80b4fb" },
"indent-blankline.nvim": { "branch": "master", "commit": "e7a4442e055ec953311e77791546238d1eaae507" },
"lazy.nvim": { "branch": "main", "commit": "1159bdccd8910a0fd0914b24d6c3d186689023d9" },
"lazy.nvim": { "branch": "main", "commit": "077102c5bfc578693f12377846d427f49bc50076" },
"lspkind.nvim": { "branch": "master", "commit": "59c3f419af48a2ffb2320cea85e44e5a95f71664" },
"lspsaga.nvim": { "branch": "main", "commit": "3c1af059348350b0bbb81c5ca3c1f8f573dbd64a" },
"mason-conform.nvim": { "branch": "main", "commit": "abce2be529f3b4b336c56d0ba6336a9144e0fee6" },
@ -27,7 +27,7 @@
"nvim-lint": { "branch": "master", "commit": "f707b3ae50417067fa63fdfe179b0bff6b380da1" },
"nvim-lspconfig": { "branch": "master", "commit": "d141895d1d9f41048fff201d62a2d6e96d299e32" },
"nvim-surround": { "branch": "main", "commit": "ec2dc7671067e0086cdf29c2f5df2dd909d5f71f" },
"nvim-tree.lua": { "branch": "master", "commit": "1c9553a19f70df3dcb171546a3d5e034531ef093" },
"nvim-tree.lua": { "branch": "master", "commit": "f5f67892996b280ae78b1b0a2d07c4fa29ae0905" },
"nvim-treesitter": { "branch": "master", "commit": "5a2ff8b7ca5470b1011ed82ef3fdd53139ffc467" },
"nvim-ts-autotag": { "branch": "main", "commit": "e239a560f338be31337e7abc3ee42515daf23f5e" },
"nvim-web-devicons": { "branch": "master", "commit": "19d257cf889f79f4022163c3fbb5e08639077bd8" },
@ -35,7 +35,7 @@
"substitute.nvim": { "branch": "main", "commit": "97f49d16f8eea7967d41db4f657dd63af53eeba1" },
"telescope.nvim": { "branch": "master", "commit": "df534c3042572fb958586facd02841e10186707c" },
"tide.nvim": { "branch": "main", "commit": "21ba7f11cef61b3b28aaadf7b7063f36c5b6c1ef" },
"ui": { "branch": "v3.0", "commit": "99dae0e715fc67d8a38f27b2fc7b8bd47c23e817" },
"ui": { "branch": "v3.0", "commit": "4e35d2685e45bfd782caf4d3a160227fd58ca950" },
"vim-obsession": { "branch": "master", "commit": "fe9d3e1a9a50171e7d316a52e1e56d868e4c1fe5" },
"vim-prosession": { "branch": "master", "commit": "4b8323d4e9b74afe9132a34b2d7ea6cfa9461550" },
"volt": { "branch": "main", "commit": "43f72b49037c191eb3cfe26ba7a5574b4bfce226" },

View File

@ -44,6 +44,14 @@ map("n", "<leader>lr", vim.lsp.buf.rename, opts)
-- substitute mappings
map("n", "s", require("substitute").operator, { noremap = true })
-- lspsaga mappings
map("n", "<leader>lh", "<cmd>Lspsaga hover_doc<CR>", opts)
map("n", "<leader>la", "<cmd>Lspsaga code_action<CR>", opts)
map("n", "<leader>lt", "<cmd>Lspsaga peek_type_definition<CR>", opts)
map("n", "<leader>ld", "<cmd>Lspsaga peek_definition<CR>", opts)
map("n", "<leader>lf", "<cmd>Lspsaga finder<CR>", opts)
map("n", "<leader>le", "<cmd>Lspsaga diagnostic_jump_next<CR>", opts)
-- remove default mappings
nomap("n", "<leader>n")
nomap("n", "<leader>b")

View File

@ -34,23 +34,5 @@ return {
only_in_cursor = false,
},
}
opts.desc = "Show hover docs"
map("n", "<leader>lh", "<cmd>Lspsaga hover_doc<CR>", opts)
opts.desc = "Show code actions"
map("n", "<leader>la", "<cmd>Lspsaga code_action<CR>", opts)
opts.desc = "Show type definitions"
map("n", "<leader>lt", "<cmd>Lspsaga peek_type_definition<CR>", opts)
opts.desc = "Show definitions"
map("n", "<leader>ld", "<cmd>Lspsaga peek_definition<CR>", opts)
opts.desc = "Show Lspsaga finder"
map("n", "<leader>lf", "<cmd>Lspsaga finder<CR>", opts)
opts.desc = "Go to next diagnostic information"
map("n", "<leader>le", "<cmd>Lspsaga diagnostic_jump_next<CR>", opts)
end,
}

3
.vscode/settings.json vendored Normal file
View File

@ -0,0 +1,3 @@
{
"Lua.diagnostics.globals": ["vim"]
}