45 lines
985 B
Nix
45 lines
985 B
Nix
{inputs, ...}: {
|
|
imports = [
|
|
inputs.nixvim.homeModules.nixvim
|
|
./plugins
|
|
./colorschemes.nix
|
|
];
|
|
|
|
programs.nixvim = {
|
|
enable = true;
|
|
defaultEditor = true;
|
|
|
|
globals.mapleader = " ";
|
|
clipboard.register = "unnamedplus";
|
|
luaLoader.enable = true;
|
|
|
|
opts = import ./options.nix;
|
|
keymaps = import ./keymaps.nix;
|
|
|
|
extraConfigLua =
|
|
# lua
|
|
''
|
|
-- Disable netrw
|
|
g.loaded_netrw = 1
|
|
g.loaded_netrwPlugin = 1
|
|
|
|
-- Hide line numbers in terminal mode
|
|
vim.cmd [[ autocmd TermOpen * setlocal nonumber norelativenumber ]]
|
|
|
|
-- Disable arrow keys
|
|
-- vim.cmd [[ :map <Up> <Nop> ]]
|
|
-- vim.cmd [[ :map <Left> <Nop> ]]
|
|
-- vim.cmd [[ :map <Right> <Nop> ]]
|
|
-- vim.cmd [[ :map <Down> <Nop> ]]
|
|
|
|
-- Add filetypes
|
|
vim.filetype.add({
|
|
pattern = {
|
|
[".*%.arb"] = "json",
|
|
["%.sqruff"] = "toml",
|
|
},
|
|
})
|
|
'';
|
|
};
|
|
}
|