feat(neovim): add more functionality.
This commit is contained in:
parent
55ce46bcf5
commit
83bf8b3020
@ -59,6 +59,39 @@ in {
|
|||||||
# Enable lsp
|
# Enable lsp
|
||||||
lsp = {
|
lsp = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
formatOnSave = false;
|
||||||
|
inlayHints.enable = true;
|
||||||
|
lightbulb.enable = true;
|
||||||
|
lspSignature.enable = true;
|
||||||
|
lspkind.enable = true;
|
||||||
|
lspsaga.enable = true;
|
||||||
|
otter-nvim.enable = true;
|
||||||
|
trouble.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
# Enable diagnostics
|
||||||
|
diagnostics = {
|
||||||
|
enable = true;
|
||||||
|
nvim-lint = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
# Enable formatting with conform-nvim
|
||||||
|
formatter = {
|
||||||
|
conform-nvim = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
# Some git related stuff
|
||||||
|
git = {
|
||||||
|
git-conflict = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
gitlinker-nvim = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# Autocompletion
|
# Autocompletion
|
||||||
@ -76,8 +109,9 @@ in {
|
|||||||
# Setup lsp's and languages
|
# Setup lsp's and languages
|
||||||
languages = {
|
languages = {
|
||||||
enableLSP = true;
|
enableLSP = true;
|
||||||
enableTreesitter = true;
|
|
||||||
enableFormat = true;
|
enableFormat = true;
|
||||||
|
enableTreesitter = true;
|
||||||
|
enableExtraDiagnostics = true;
|
||||||
|
|
||||||
lua = {
|
lua = {
|
||||||
enable = true;
|
enable = true;
|
||||||
@ -115,6 +149,23 @@ in {
|
|||||||
html.enable = true;
|
html.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# utility related plugins
|
||||||
|
utility = {
|
||||||
|
direnv = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
icon-picker = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
snacks-nvim = {
|
||||||
|
enable = true;
|
||||||
|
setupOpts = {
|
||||||
|
bigfile = {enabled = true;};
|
||||||
|
quickfile = {enabled = true;};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
# Enable mini modules ( mini is amazing )
|
# Enable mini modules ( mini is amazing )
|
||||||
mini = {
|
mini = {
|
||||||
# Text editing
|
# Text editing
|
||||||
@ -219,14 +270,6 @@ in {
|
|||||||
|
|
||||||
navigation.harpoon.enable = true;
|
navigation.harpoon.enable = true;
|
||||||
|
|
||||||
utility.snacks-nvim = {
|
|
||||||
enable = true;
|
|
||||||
setupOpts = {
|
|
||||||
bigfile = {enabled = true;};
|
|
||||||
quickfile = {enabled = true;};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
extraLuaFiles = [./nvim/autocommands.lua];
|
extraLuaFiles = [./nvim/autocommands.lua];
|
||||||
|
|
||||||
extraPlugins = with pkgs.vimPlugins; {
|
extraPlugins = with pkgs.vimPlugins; {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user