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 = {
|
||||
luasnip.enable = true;
|
||||
/*
|
||||
copilot-lua = {
|
||||
enable = true;
|
||||
suggestion.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 = {
|
||||
enable = true;
|
||||
|
||||
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 = ''
|
||||
function(args)
|
||||
require('luasnip').lsp_expand(args.body)
|
||||
end
|
||||
'';
|
||||
*/
|
||||
sources = [
|
||||
{name = "nvim_lsp";}
|
||||
{name = "luasnip";}
|
||||
|
@ -36,9 +42,7 @@
|
|||
}
|
||||
{name = "nvim_lua";}
|
||||
{name = "path";}
|
||||
{name = "copilot";}
|
||||
];
|
||||
|
||||
formatting = {
|
||||
fields = ["abbr" "kind" "menu"];
|
||||
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
|
||||
./bufferline.nix
|
||||
./cmp.nix
|
||||
#./coq.nix
|
||||
./git.nix
|
||||
./ionide.nix
|
||||
./lualine.nix
|
||||
|
|
|
@ -6,8 +6,8 @@
|
|||
enable = true;
|
||||
servers = {
|
||||
# For Python
|
||||
#pylsp.enable = true;
|
||||
pylyzer.enable = true;
|
||||
pylsp.enable = true;
|
||||
#pylyzer.enable = true;
|
||||
#ruff.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