feat(Neovim): Sensible keymaps, prune plugins, Kickstart.nvim LSP code

This commit is contained in:
Pratik Tripathy
2024-12-16 19:50:50 +05:30
parent c6f9dd6a87
commit 4a1715446c
12 changed files with 450 additions and 729 deletions

View File

@@ -15,10 +15,10 @@ return {
-- Build Step is needed for regex support in snippets.
-- This step is not supported in many windows environments.
-- Remove the below condition to re-enable on windows.
if vim.fn.has 'win32' == 1 or vim.fn.executable 'make' == 0 then
if vim.fn.has("win32") == 1 or vim.fn.executable("make") == 0 then
return
end
return 'make install_jsregexp'
return "make install_jsregexp"
end)(),
dependencies = {
-- `friendly-snippets` contains a variety of premade snippets.
@@ -27,7 +27,7 @@ return {
{
"rafamadriz/friendly-snippets",
config = function()
require('luasnip.loaders.from_vscode')
require("luasnip.loaders.from_vscode")
end,
},
},
@@ -90,12 +90,12 @@ return {
if luasnip.expand_or_locally_jumpable() then
luasnip.expand_or_jump()
end
end, { 'i', 's' }),
end, { "i", "s" }),
["<C-h>"] = cmp.mapping(function()
if luasnip.locally_jumpable(-1) then
luasnip.jump(-1)
end
end, { 'i', 's' }),
end, { "i", "s" }),
}),
sources = {
{ name = "nvim_lsp" },