mirror of
https://github.com/iofq/nvim.nix.git
synced 2026-01-23 08:55:16 -06:00
add nix config
This commit is contained in:
parent
c4ddbfc40c
commit
4b7dd9144c
3 changed files with 7 additions and 1 deletions
1
config/ftplugin/nix.lua
Normal file
1
config/ftplugin/nix.lua
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
vim.opt_local.tabstop = 2
|
||||||
|
|
@ -53,13 +53,14 @@
|
||||||
''
|
''
|
||||||
lua << EOF
|
lua << EOF
|
||||||
package.path = "${self}/config/?.lua;" .. "${self}/config/lua/?.lua;" .. package.path
|
package.path = "${self}/config/?.lua;" .. "${self}/config/lua/?.lua;" .. package.path
|
||||||
|
vim.o.runtimepath = "${self}/config," .. vim.o.runtimepath
|
||||||
''
|
''
|
||||||
+ pkgs.lib.readFile ./config/init.lua
|
+ pkgs.lib.readFile ./config/init.lua
|
||||||
+ ''
|
+ ''
|
||||||
EOF
|
EOF
|
||||||
'';
|
'';
|
||||||
packages.plugins = with pkgs.vimPlugins; {
|
packages.plugins = with pkgs.vimPlugins; {
|
||||||
start = plugins.base ++ plugins.treesitter;
|
start = plugins.base ++ plugins.extra ++ plugins.treesitter;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
@ -70,6 +71,7 @@
|
||||||
''
|
''
|
||||||
lua << EOF
|
lua << EOF
|
||||||
package.path = "${self}/config/?.lua;" .. "${self}/config/lua/?.lua;" .. package.path
|
package.path = "${self}/config/?.lua;" .. "${self}/config/lua/?.lua;" .. package.path
|
||||||
|
vim.o.runtimepath = "${self}/config," .. vim.o.runtimepath
|
||||||
''
|
''
|
||||||
+ pkgs.lib.readFile ./config/minimal-init.lua
|
+ pkgs.lib.readFile ./config/minimal-init.lua
|
||||||
+ ''
|
+ ''
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,9 @@
|
||||||
neogit
|
neogit
|
||||||
rose-pine
|
rose-pine
|
||||||
];
|
];
|
||||||
|
extra = with pkgs.vimPlugins; [
|
||||||
|
vim-nix
|
||||||
|
];
|
||||||
treesitter = with pkgs.vimPlugins; [
|
treesitter = with pkgs.vimPlugins; [
|
||||||
(nvim-treesitter.withPlugins
|
(nvim-treesitter.withPlugins
|
||||||
(
|
(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue