feat(nixvim): tagbar wrapping and lsp
diag: changed to trouble from lsp-lines tagbar: added to see outline of programs wrapping: added
This commit is contained in:
parent
1a57d0a196
commit
ef09316160
5 changed files with 50 additions and 11 deletions
|
@ -21,12 +21,23 @@
|
||||||
./wilder.nix
|
./wilder.nix
|
||||||
./virt-column.nix
|
./virt-column.nix
|
||||||
./devicons.nix
|
./devicons.nix
|
||||||
|
./tagbar.nix
|
||||||
|
./wrapping.nix
|
||||||
];
|
];
|
||||||
enable = true;
|
enable = true;
|
||||||
enableMan = true;
|
enableMan = true;
|
||||||
defaultEditor = true;
|
defaultEditor = true;
|
||||||
globals.mapleader = " ";
|
globals.mapleader = " ";
|
||||||
colorschemes.gruvbox = { enable = true; };
|
colorschemes.gruvbox = { enable = true; };
|
||||||
|
performance = {
|
||||||
|
byteCompileLua.enable = true;
|
||||||
|
combinePlugins = {
|
||||||
|
enable = true;
|
||||||
|
/*standalonePlugins = [
|
||||||
|
"nvim-treesitter"
|
||||||
|
];*/
|
||||||
|
};
|
||||||
|
};
|
||||||
keymaps =
|
keymaps =
|
||||||
[
|
[
|
||||||
# Global
|
# Global
|
||||||
|
|
|
@ -11,6 +11,11 @@
|
||||||
#ruff.enable = true;
|
#ruff.enable = true;
|
||||||
#ruff_lsp.enable = true;
|
#ruff_lsp.enable = true;
|
||||||
|
|
||||||
|
rust-analyzer = {
|
||||||
|
enable = true;
|
||||||
|
installCargo = false;
|
||||||
|
installRustc = false;
|
||||||
|
};
|
||||||
# For CXX
|
# For CXX
|
||||||
clangd.enable = true;
|
clangd.enable = true;
|
||||||
|
|
||||||
|
@ -19,7 +24,7 @@
|
||||||
fsautocomplete.enable = true;
|
fsautocomplete.enable = true;
|
||||||
gopls.enable = true;
|
gopls.enable = true;
|
||||||
|
|
||||||
nushell.enable = true;
|
#nushell.enable = true;
|
||||||
|
|
||||||
# For Nix
|
# For Nix
|
||||||
#nil_ls.enable = true;
|
#nil_ls.enable = true;
|
||||||
|
@ -50,12 +55,12 @@
|
||||||
"K" = "hover";
|
"K" = "hover";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
lsp-lines.enable = true;
|
#lsp-lines.enable = true;
|
||||||
|
|
||||||
rustaceanvim = {
|
#rustaceanvim = {
|
||||||
enable = true;
|
# enable = true;
|
||||||
# rust-tools.enable = true;
|
# # rust-tools.enable = true;
|
||||||
};
|
#};
|
||||||
};
|
};
|
||||||
diagnostics.virtual_lines.only_current_line = true;
|
diagnostics.virtual_lines.only_current_line = true;
|
||||||
}
|
}
|
||||||
|
|
21
home-manager/stvnliu/nixvim/tagbar.nix
Normal file
21
home-manager/stvnliu/nixvim/tagbar.nix
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
{ pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
plugins.tagbar = {
|
||||||
|
enable = true;
|
||||||
|
tagsPackage = pkgs.universal-ctags;
|
||||||
|
settings = {
|
||||||
|
autoclose = false;
|
||||||
|
autofocus = false;
|
||||||
|
autoshowtag = true;
|
||||||
|
foldlevel = 2;
|
||||||
|
iconchars = [ "" "" ];
|
||||||
|
position = "right";
|
||||||
|
visibility_symbols = {
|
||||||
|
private = " ";
|
||||||
|
protected = " ";
|
||||||
|
public = " ";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -5,11 +5,7 @@
|
||||||
nixGrammars = true;
|
nixGrammars = true;
|
||||||
nixvimInjections = true; # enables language injection in nixvim
|
nixvimInjections = true; # enables language injection in nixvim
|
||||||
settings.indent.enable = true;
|
settings.indent.enable = true;
|
||||||
grammarPackages =
|
grammarPackages = pkgs.vimPlugins.nvim-treesitter.passthru.allGrammars;
|
||||||
pkgs.vimPlugins.nvim-treesitter.passthru.allGrammars
|
|
||||||
++ [
|
|
||||||
pkgs.tree-sitter-grammars.tree-sitter-nu
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
treesitter-context.enable = true;
|
treesitter-context.enable = true;
|
||||||
rainbow-delimiters.enable = true;
|
rainbow-delimiters.enable = true;
|
||||||
|
|
6
home-manager/stvnliu/nixvim/wrapping.nix
Normal file
6
home-manager/stvnliu/nixvim/wrapping.nix
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
{ ... }:
|
||||||
|
{
|
||||||
|
plugins.wrapping = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue