lsp
This commit is contained in:
@ -1,6 +1,9 @@
|
|||||||
{ config, pkgs, nixvim, ...}:
|
{ config, pkgs, nixvim, ...}:
|
||||||
{
|
{
|
||||||
programs.nixvim = {
|
programs.nixvim.plugins = {
|
||||||
|
cmp-nvim-lsp.enable = true;
|
||||||
|
cmp-path.enable = true;
|
||||||
|
cmp-buffer.enable = true;
|
||||||
cmp = {
|
cmp = {
|
||||||
enable = true;
|
enable = true;
|
||||||
autoEnableSources = true;
|
autoEnableSources = true;
|
||||||
@ -10,7 +13,6 @@
|
|||||||
{name = "buffer";}
|
{name = "buffer";}
|
||||||
{name = "luasnip";}
|
{name = "luasnip";}
|
||||||
];
|
];
|
||||||
|
|
||||||
mapping = {
|
mapping = {
|
||||||
"<CR>" = "cmp.mapping.confirm({ select = true })";
|
"<CR>" = "cmp.mapping.confirm({ select = true })";
|
||||||
"<Tab>" = {
|
"<Tab>" = {
|
||||||
|
8
modules/nix/nvim/lsp.nix
Normal file
8
modules/nix/nvim/lsp.nix
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
{ config, pkgs, nixvim, ... }:
|
||||||
|
{
|
||||||
|
programs.nixvim.plugins = {
|
||||||
|
lsp = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Reference in New Issue
Block a user