nvim: lazy-nvim

This commit is contained in:
2024-03-02 15:12:36 +01:00
parent 5dda99f71b
commit e7787db9f8
3 changed files with 76 additions and 26 deletions

View File

@@ -5,8 +5,10 @@
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
@@ -14,6 +16,7 @@
extraLuaConfig = '' extraLuaConfig = ''
vim.g.mapleader = " " vim.g.mapleader = " "
require("plugins")
require("lazy").setup({ require("lazy").setup({
spec = { spec = {
-- Import plugins from lua/plugins -- Import plugins from lua/plugins

View File

@@ -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

View 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,
},
},
},
},
},
}