1
0
Fork 0
mirror of https://git.sr.ht/~roxwize/.dotfiles synced 2025-01-30 22:53:37 +00:00
This commit is contained in:
Rae 5e 2024-12-20 14:52:09 -05:00
parent 0872cf4d03
commit dd5f89f39b
3 changed files with 1 additions and 40 deletions

View file

@ -1,36 +0,0 @@
-- cmp
local cmp = require("cmp")
cmp.setup {
snippet = {
expand = function(args)
require("luasnip").lsp_expand(args.body)
end
},
mapping = {
['<C-p>'] = cmp.mapping.select_prev_item(),
['<C-n>'] = cmp.mapping.select_next_item(),
['<C-space>'] = cmp.mapping.complete(),
['<C-e>'] = cmp.mapping.close(),
['<tab>'] = cmp.mapping.confirm { select = true }
},
sources = cmp.config.sources({
{ name = "nvim_lsp" },
{ name = "luasnip" }
})
}
local caps = vim.tbl_deep_extend(
"force",
vim.lsp.protocol.make_client_capabilities(),
require("cmp_nvim_lsp").default_capabilities(),
{ workspace = { didChangeWatchedFiles = { dynamicRegistration = true } } }
)
-- lspconfig
local lc = require("lspconfig")
lc.nix_nil.setup {
autostart = true,
capabilities = caps,
cmd = { "nil" }
}

View file

@ -22,10 +22,6 @@
};
};
xdg.configFile = {
"nvim" = {
source = ../../configs/neovim;
recursive = true;
};
"openbox".source = ../../configs/openbox;
};

View file

@ -5,6 +5,7 @@
vimAlias = true;
plugins = with pkgs.vimPlugins; [
cmp_luasnip
cmp-nvim-lsp
luasnip
nvim-cmp
nvim-lspconfig