nvim: lazy-nvim
This commit is contained in:
@@ -5,39 +5,42 @@
|
|||||||
|
|
||||||
programs.neovim = {
|
programs.neovim = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
withNodeJs = true;
|
||||||
|
withPython3 = true;
|
||||||
|
|
||||||
plugin = with pkgs.vimPlugins; [
|
plugins = with pkgs.vimPlugins; [
|
||||||
lazy-nvim
|
lazy-nvim
|
||||||
|
|
||||||
catppuccin-nvim
|
catppuccin-nvim
|
||||||
];
|
];
|
||||||
|
|
||||||
extraLuaConfig = ''
|
extraLuaConfig = ''
|
||||||
vim.g.mapleader = " "
|
vim.g.mapleader = " "
|
||||||
require("lazy").setup({
|
require("plugins")
|
||||||
spec = {
|
require("lazy").setup({
|
||||||
-- Import plugins from lua/plugins
|
spec = {
|
||||||
{ import = "plugins" },
|
-- Import plugins from lua/plugins
|
||||||
|
{ import = "plugins" },
|
||||||
|
},
|
||||||
|
performance = {
|
||||||
|
reset_packpath = false,
|
||||||
|
rtp = {
|
||||||
|
reset = false,
|
||||||
|
}
|
||||||
},
|
},
|
||||||
performance = {
|
dev = {
|
||||||
reset_packpath = false,
|
path = "${
|
||||||
rtp = {
|
pkgs.vimUtils.packDir
|
||||||
reset = false,
|
config.programs.neovim.finalPackage.passthru.packpathDirs
|
||||||
}
|
}/pack/myNeovimPackages/start",
|
||||||
},
|
patterns = {"folke", "catppuccin"},
|
||||||
dev = {
|
},
|
||||||
path = "${
|
install = {
|
||||||
pkgs.vimUtils.packDir
|
-- Safeguard in case we forget to install a plugin with Nix
|
||||||
config.programs.neovim.finalPackage.passthru.packpathDirs
|
missing = false,
|
||||||
}/pack/myNeovimPackages/start",
|
},
|
||||||
patterns = {"folke", "catppuccin"},
|
})
|
||||||
},
|
require("config/options")
|
||||||
install = {
|
|
||||||
-- Safeguard in case we forget to install a plugin with Nix
|
|
||||||
missing = false,
|
|
||||||
},
|
|
||||||
})
|
|
||||||
require("config/options")
|
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -11,4 +11,3 @@ opt.shiftwidth = 2 -- Size of an indent
|
|||||||
opt.smartindent = true -- Insert indents automatically
|
opt.smartindent = true -- Insert indents automatically
|
||||||
opt.spelllang = { "en" }
|
opt.spelllang = { "en" }
|
||||||
opt.tabstop = 2 -- Number of spaces tabs count for
|
opt.tabstop = 2 -- Number of spaces tabs count for
|
||||||
|
|
||||||
|
|||||||
48
home/programs/neovim/lua/plugins/colorscheme.lua
Normal file
48
home/programs/neovim/lua/plugins/colorscheme.lua
Normal file
@@ -0,0 +1,48 @@
|
|||||||
|
return {
|
||||||
|
{
|
||||||
|
"catppuccin/nvim",
|
||||||
|
lazy = false,
|
||||||
|
name = "catppuccin",
|
||||||
|
priority = 1000,
|
||||||
|
config = function()
|
||||||
|
vim.cmd.colorscheme("catppuccin")
|
||||||
|
end,
|
||||||
|
opts = {
|
||||||
|
integrations = {
|
||||||
|
nvimtree = true,
|
||||||
|
dashboard = true,
|
||||||
|
which_key = true,
|
||||||
|
cmp = true,
|
||||||
|
markdown = true,
|
||||||
|
leap = true,
|
||||||
|
telescope = {
|
||||||
|
enabled = true,
|
||||||
|
},
|
||||||
|
treesitter = true,
|
||||||
|
rainbow_delimiters = true,
|
||||||
|
dropbar = {
|
||||||
|
enabled = false,
|
||||||
|
color_mode = false, -- enable color for kind's texts, not just kind's icons
|
||||||
|
},
|
||||||
|
native_lsp = {
|
||||||
|
enabled = true,
|
||||||
|
virtual_text = {
|
||||||
|
errors = { "italic" },
|
||||||
|
hints = { "italic" },
|
||||||
|
warnings = { "italic" },
|
||||||
|
information = { "italic" },
|
||||||
|
},
|
||||||
|
underlines = {
|
||||||
|
errors = { "underline" },
|
||||||
|
hints = { "underline" },
|
||||||
|
warnings = { "underline" },
|
||||||
|
information = { "underline" },
|
||||||
|
},
|
||||||
|
inlay_hints = {
|
||||||
|
background = true,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user