{pkgs, ...}: { xdg.desktopEntries = { "nvim".name = "Neovim wrapper"; "nvim".exec = "nvim %F"; "nvim".noDisplay = true; }; programs.nixvim = { enable = true; viAlias = true; vimAlias = true; clipboard.providers.wl-copy.enable = true; colorscheme = "dracula"; extraPlugins = with pkgs.vimPlugins; [ dracula-vim ]; extraPackages = with pkgs; [ fd ripgrep ]; options = { autowrite = true; background = "dark"; clipboard = "unnamedplus"; expandtab = true; laststatus = 2; showmode = false; swapfile = false; number = true; relativenumber = true; shiftwidth = 2; signcolumn = "yes"; smartindent = true; tabstop = 2; termguicolors = true; updatetime = 100; wrap = true; splitright = true; splitbelow = true; }; maps = { normal = { "" = { silent = true; action = "bp"; }; "" = { silent = true; action = "bn"; }; "" = { silent = true; action = "noh"; }; "w" = { silent = true; action = "bdeletebnext"; }; "`" = { silent = true; action = ":ToggleTerm"; }; "1" = { silent = true; action = ":Neotree toggle"; }; "ff" = { silent = true; action = ":Telescope find_files"; }; "fg" = { silent = true; action = ":Telescope live_grep"; }; }; }; plugins = { bufferline = { enable = true; diagnostics = "nvim_lsp"; offsets = [ { filetype = "neo-tree"; text = "File Explorer"; separator = true; } ]; separatorStyle = "slant"; }; cmp-buffer.enable = true; cmp-nvim-lsp.enable = true; cmp-nvim-lsp-document-symbol.enable = true; cmp-nvim-lsp-signature-help.enable = true; cmp-treesitter.enable = true; cmp_luasnip.enable = true; gitsigns = { enable = true; currentLineBlame = true; currentLineBlameOpts.delay = 100; }; indent-blankline = { enable = true; showEndOfLine = true; useTreesitter = true; useTreesitterScope = true; }; lastplace.enable = true; lsp = { enable = true; servers = { bashls.enable = true; gopls.enable = true; jsonls.enable = true; nixd.enable = true; rust-analyzer.enable = true; yamlls.enable = true; }; }; lualine = { enable = true; globalstatus = true; theme = "dracula"; }; neo-tree = { enable = true; addBlankLineAtTop = true; enableDiagnostics = true; enableGitStatus = true; closeIfLastWindow = true; buffers = { followCurrentFile = { enabled = true; leaveDirsOpen = false; }; }; filesystem = { followCurrentFile = { enabled = true; leaveDirsOpen = false; }; useLibuvFileWatcher = true; }; }; nvim-cmp = { enable = true; snippet.expand = "luasnip"; sources = [ {name = "nvim_lsp";} {name = "luasnip";} {name = "buffers";} {name = "treesitter";} ]; }; telescope = { enable = true; extensions = { fzf-native = { enable = true; caseMode = "smart_case"; fuzzy = true; }; }; }; toggleterm = { enable = true; }; treesitter = { enable = true; }; treesitter-context.enable = true; treesitter-refactor.enable = true; }; }; }