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
|
||||
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
|
||||
+ ''
|
||||
EOF
|
||||
'';
|
||||
packages.plugins = with pkgs.vimPlugins; {
|
||||
start = plugins.base ++ plugins.treesitter;
|
||||
start = plugins.base ++ plugins.extra ++ plugins.treesitter;
|
||||
};
|
||||
};
|
||||
});
|
||||
|
|
@ -70,6 +71,7 @@
|
|||
''
|
||||
lua << EOF
|
||||
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
|
||||
+ ''
|
||||
|
|
|
|||
|
|
@ -10,6 +10,9 @@
|
|||
neogit
|
||||
rose-pine
|
||||
];
|
||||
extra = with pkgs.vimPlugins; [
|
||||
vim-nix
|
||||
];
|
||||
treesitter = with pkgs.vimPlugins; [
|
||||
(nvim-treesitter.withPlugins
|
||||
(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue