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
|
||||
./virt-column.nix
|
||||
./devicons.nix
|
||||
./tagbar.nix
|
||||
./wrapping.nix
|
||||
];
|
||||
enable = true;
|
||||
enableMan = true;
|
||||
defaultEditor = true;
|
||||
globals.mapleader = " ";
|
||||
colorschemes.gruvbox = { enable = true; };
|
||||
performance = {
|
||||
byteCompileLua.enable = true;
|
||||
combinePlugins = {
|
||||
enable = true;
|
||||
/*standalonePlugins = [
|
||||
"nvim-treesitter"
|
||||
];*/
|
||||
};
|
||||
};
|
||||
keymaps =
|
||||
[
|
||||
# Global
|
||||
|
|
|
@ -11,6 +11,11 @@
|
|||
#ruff.enable = true;
|
||||
#ruff_lsp.enable = true;
|
||||
|
||||
rust-analyzer = {
|
||||
enable = true;
|
||||
installCargo = false;
|
||||
installRustc = false;
|
||||
};
|
||||
# For CXX
|
||||
clangd.enable = true;
|
||||
|
||||
|
@ -19,7 +24,7 @@
|
|||
fsautocomplete.enable = true;
|
||||
gopls.enable = true;
|
||||
|
||||
nushell.enable = true;
|
||||
#nushell.enable = true;
|
||||
|
||||
# For Nix
|
||||
#nil_ls.enable = true;
|
||||
|
@ -50,12 +55,12 @@
|
|||
"K" = "hover";
|
||||
};
|
||||
};
|
||||
lsp-lines.enable = true;
|
||||
#lsp-lines.enable = true;
|
||||
|
||||
rustaceanvim = {
|
||||
enable = true;
|
||||
# rust-tools.enable = true;
|
||||
};
|
||||
#rustaceanvim = {
|
||||
# enable = true;
|
||||
# # rust-tools.enable = 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;
|
||||
nixvimInjections = true; # enables language injection in nixvim
|
||||
settings.indent.enable = true;
|
||||
grammarPackages =
|
||||
pkgs.vimPlugins.nvim-treesitter.passthru.allGrammars
|
||||
++ [
|
||||
pkgs.tree-sitter-grammars.tree-sitter-nu
|
||||
];
|
||||
grammarPackages = pkgs.vimPlugins.nvim-treesitter.passthru.allGrammars;
|
||||
};
|
||||
treesitter-context.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