neovim: changes to how we access nvf.lib
This commit is contained in:
parent
7868ac1529
commit
8d9c2a0ed2
39 changed files with 30 additions and 28 deletions
5
outputs/pkgs/ook-vim/config/plugins/languages/bash.nix
Normal file
5
outputs/pkgs/ook-vim/config/plugins/languages/bash.nix
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
vim.languages.bash = {
|
||||
enable = true;
|
||||
};
|
||||
}
|
||||
6
outputs/pkgs/ook-vim/config/plugins/languages/css.nix
Normal file
6
outputs/pkgs/ook-vim/config/plugins/languages/css.nix
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
vim.languages.css = {
|
||||
enable = true;
|
||||
format.enable = true;
|
||||
};
|
||||
}
|
||||
21
outputs/pkgs/ook-vim/config/plugins/languages/default.nix
Normal file
21
outputs/pkgs/ook-vim/config/plugins/languages/default.nix
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
{
|
||||
imports = [
|
||||
./nix.nix
|
||||
./lsp.nix
|
||||
./bash.nix
|
||||
./treesitter.nix
|
||||
./html.nix
|
||||
./ts.nix
|
||||
./go.nix
|
||||
./lua.nix
|
||||
];
|
||||
|
||||
vim.languages = {
|
||||
enableLSP = true;
|
||||
enableTreesitter = true;
|
||||
enableFormat = true;
|
||||
enableExtraDiagnostics = true;
|
||||
|
||||
typst.enable = true;
|
||||
};
|
||||
}
|
||||
5
outputs/pkgs/ook-vim/config/plugins/languages/go.nix
Normal file
5
outputs/pkgs/ook-vim/config/plugins/languages/go.nix
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
vim.languages.go = {
|
||||
enable = true;
|
||||
};
|
||||
}
|
||||
5
outputs/pkgs/ook-vim/config/plugins/languages/html.nix
Normal file
5
outputs/pkgs/ook-vim/config/plugins/languages/html.nix
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
vim.languages.html = {
|
||||
enable = true;
|
||||
};
|
||||
}
|
||||
8
outputs/pkgs/ook-vim/config/plugins/languages/lsp.nix
Normal file
8
outputs/pkgs/ook-vim/config/plugins/languages/lsp.nix
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
vim.lsp = {
|
||||
formatOnSave = true;
|
||||
lspkind.enable = true;
|
||||
lspSignature.enable = true;
|
||||
trouble = {enable = true;};
|
||||
};
|
||||
}
|
||||
5
outputs/pkgs/ook-vim/config/plugins/languages/lua.nix
Normal file
5
outputs/pkgs/ook-vim/config/plugins/languages/lua.nix
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
vim.languages.lua = {
|
||||
enable = true;
|
||||
};
|
||||
}
|
||||
11
outputs/pkgs/ook-vim/config/plugins/languages/markdown.nix
Normal file
11
outputs/pkgs/ook-vim/config/plugins/languages/markdown.nix
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
vim = {
|
||||
languages.markdown = {
|
||||
enable = true;
|
||||
format = true;
|
||||
};
|
||||
utility = {
|
||||
preview.markdownPreview = {enable = true;};
|
||||
};
|
||||
};
|
||||
}
|
||||
5
outputs/pkgs/ook-vim/config/plugins/languages/nix.nix
Normal file
5
outputs/pkgs/ook-vim/config/plugins/languages/nix.nix
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
vim.languages.nix = {
|
||||
enable = true;
|
||||
};
|
||||
}
|
||||
11
outputs/pkgs/ook-vim/config/plugins/languages/treesitter.nix
Normal file
11
outputs/pkgs/ook-vim/config/plugins/languages/treesitter.nix
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
{pkgs, ...}: {
|
||||
vim.treesitter = {
|
||||
enable = true;
|
||||
fold = true;
|
||||
grammars = with pkgs.vimPlugins.nvim-treesitter.builtGrammars; [
|
||||
kdl
|
||||
regex
|
||||
fish
|
||||
];
|
||||
};
|
||||
}
|
||||
5
outputs/pkgs/ook-vim/config/plugins/languages/ts.nix
Normal file
5
outputs/pkgs/ook-vim/config/plugins/languages/ts.nix
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
vim.languages.ts = {
|
||||
enable = true;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue