feat: improve nixvim configuration
This commit is contained in:
parent
4694410cc8
commit
b74b1ba3e4
5 changed files with 39 additions and 16 deletions
|
@ -2,31 +2,37 @@
|
||||||
{
|
{
|
||||||
plugins = {
|
plugins = {
|
||||||
luasnip.enable = true;
|
luasnip.enable = true;
|
||||||
|
/*
|
||||||
copilot-lua = {
|
copilot-lua = {
|
||||||
enable = true;
|
enable = true;
|
||||||
suggestion.enabled = false;
|
suggestion.enabled = false;
|
||||||
panel.enabled = false;
|
panel.enabled = false;
|
||||||
};
|
};
|
||||||
|
*/
|
||||||
cmp-buffer = {enable = true;};
|
|
||||||
|
|
||||||
cmp-emoji = {enable = true;};
|
|
||||||
|
|
||||||
cmp-nvim-lsp = {enable = true;};
|
|
||||||
|
|
||||||
cmp-path = {enable = true;};
|
|
||||||
|
|
||||||
cmp_luasnip = {enable = true;};
|
|
||||||
|
|
||||||
cmp = {
|
cmp = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
settings = {
|
settings = {
|
||||||
|
autoEnableSources = true;
|
||||||
|
experimental = {ghost_text = false;};
|
||||||
|
performance = {
|
||||||
|
debounce = 60;
|
||||||
|
fetchingTimeout = 200;
|
||||||
|
maxViewEntries = 30;
|
||||||
|
};
|
||||||
|
snippet = {expand = "luasnip";};
|
||||||
|
cmp-buffer = {enable = true;};
|
||||||
|
cmp-emoji = {enable = true;};
|
||||||
|
cmp-nvim-lsp = {enable = true;};
|
||||||
|
cmp-path = {enable = true;};
|
||||||
|
cmp_luasnip = {enable = true;};
|
||||||
|
|
||||||
|
/*
|
||||||
snippet.expand = ''
|
snippet.expand = ''
|
||||||
function(args)
|
function(args)
|
||||||
require('luasnip').lsp_expand(args.body)
|
require('luasnip').lsp_expand(args.body)
|
||||||
end
|
end
|
||||||
'';
|
'';
|
||||||
|
*/
|
||||||
sources = [
|
sources = [
|
||||||
{name = "nvim_lsp";}
|
{name = "nvim_lsp";}
|
||||||
{name = "luasnip";}
|
{name = "luasnip";}
|
||||||
|
@ -36,9 +42,7 @@
|
||||||
}
|
}
|
||||||
{name = "nvim_lua";}
|
{name = "nvim_lua";}
|
||||||
{name = "path";}
|
{name = "path";}
|
||||||
{name = "copilot";}
|
|
||||||
];
|
];
|
||||||
|
|
||||||
formatting = {
|
formatting = {
|
||||||
fields = ["abbr" "kind" "menu"];
|
fields = ["abbr" "kind" "menu"];
|
||||||
format =
|
format =
|
||||||
|
|
6
home-manager/stvnliu/nixvim/coq.nix
Normal file
6
home-manager/stvnliu/nixvim/coq.nix
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
plugins.coq-nvim = {
|
||||||
|
enable = true;
|
||||||
|
installArtifacts = true;
|
||||||
|
};
|
||||||
|
}
|
|
@ -4,6 +4,7 @@
|
||||||
./autosave.nix
|
./autosave.nix
|
||||||
./bufferline.nix
|
./bufferline.nix
|
||||||
./cmp.nix
|
./cmp.nix
|
||||||
|
#./coq.nix
|
||||||
./git.nix
|
./git.nix
|
||||||
./ionide.nix
|
./ionide.nix
|
||||||
./lualine.nix
|
./lualine.nix
|
||||||
|
|
|
@ -6,8 +6,8 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
servers = {
|
servers = {
|
||||||
# For Python
|
# For Python
|
||||||
#pylsp.enable = true;
|
pylsp.enable = true;
|
||||||
pylyzer.enable = true;
|
#pylyzer.enable = true;
|
||||||
#ruff.enable = true;
|
#ruff.enable = true;
|
||||||
#ruff_lsp.enable = true;
|
#ruff_lsp.enable = true;
|
||||||
|
|
||||||
|
|
12
home-manager/stvnliu/nixvim/lspkind.nix
Normal file
12
home-manager/stvnliu/nixvim/lspkind.nix
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
{
|
||||||
|
plugins.lspkind = {
|
||||||
|
enable = true;
|
||||||
|
symbolMap = {
|
||||||
|
Copilot = " ";
|
||||||
|
};
|
||||||
|
extraOptions = {
|
||||||
|
maxwidth = 50;
|
||||||
|
ellipsis_char = "...";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue