Add some nix neovim specific config to init.lua via nix
This commit is contained in:
parent
055b557c33
commit
13d17e3bad
36
home/tui/config/nvim/init.lua
Normal file
36
home/tui/config/nvim/init.lua
Normal file
|
@ -0,0 +1,36 @@
|
|||
require "common"
|
||||
require("lazy").setup {
|
||||
spec = "plugins",
|
||||
install = { colorscheme = { "tokyonight" } },
|
||||
ui = {
|
||||
border = "rounded",
|
||||
icons = { lazy = " " },
|
||||
},
|
||||
diff = { cmd = "diffview.nvim" },
|
||||
checker = { enabled = true, frequency = 3600 },
|
||||
performance = {
|
||||
rtp = {
|
||||
disabled_plugins = {
|
||||
"gzip",
|
||||
"matchit",
|
||||
"matchparen",
|
||||
"netrwPlugin",
|
||||
"tarPlugin",
|
||||
"tohtml",
|
||||
"tutor",
|
||||
"zipPlugin",
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
require "ui.fillchars"
|
||||
|
||||
vim.g.loaded_perl_provider = 0
|
||||
|
||||
if vim.g.neovide then
|
||||
require "ui.neovide"
|
||||
elseif vim.g.vscode then
|
||||
require "ui.vscode"
|
||||
end
|
||||
|
||||
vim.cmd [[colorscheme tokyonight]]
|
|
@ -1,6 +1,7 @@
|
|||
{pkgs, ...}: {
|
||||
programs.neovim = {
|
||||
enable = true;
|
||||
extraLuaConfig = builtins.readFile ./config/nvim/init.lua;
|
||||
defaultEditor = true;
|
||||
viAlias = true;
|
||||
vimAlias = true;
|
||||
|
|
2
nvim
2
nvim
|
@ -1 +1 @@
|
|||
Subproject commit 8ab7be776a477a59efe5677781fdade02089ae92
|
||||
Subproject commit 1fca774106e7d361ec797dedb10562fa619924bf
|
Loading…
Reference in a new issue