diff options
Diffstat (limited to 'programs/neovim')
-rw-r--r-- | programs/neovim/default.nix | 100 |
1 files changed, 50 insertions, 50 deletions
diff --git a/programs/neovim/default.nix b/programs/neovim/default.nix index a88b9d7..16307e7 100644 --- a/programs/neovim/default.nix +++ b/programs/neovim/default.nix @@ -1,11 +1,12 @@ -{ config, lib, pkgs, ... }: - -with lib; - { + config, + lib, + pkgs, + ... +}: +with lib; { options = { neovim = { - tabWidth = mkOption { type = types.int; description = "Width of tabes in the editor."; @@ -129,7 +130,6 @@ with lib; description = "List of lsp servers to load"; default = ["clangd" "zls" "rust_analyzer" "jdtls" "kotlin_language_server"]; }; - }; }; @@ -138,7 +138,6 @@ with lib; home-manager.users.${config.user} = { programs.neovim = { - enable = true; viAlias = true; vimAlias = true; @@ -324,49 +323,49 @@ with lib; exclude = {}, }, file_popup = { - open_win_config = { - col = 1, - row = 1, - relative = "cursor", - border = "shadow", - style = "minimal", - }, - }, - open_file = { + open_win_config = { + col = 1, + row = 1, + relative = "cursor", + border = "shadow", + style = "minimal", + }, + }, + open_file = { quit_on_open = true, - window_picker = { - enable = false, - picker = "default", - chars = "abcdefghijklmnopqrstuvwxyz1234567890", - exclude = { - filetype = { "notify", "lazy", "qf", "diff", "fugitive", "fugitiveblame" }, - buftype = { "nofile", "terminal", "help" }, - }, - } - }, - remove_file = { - close_window = true, - }, + window_picker = { + enable = false, + picker = "default", + chars = "abcdefghijklmnopqrstuvwxyz1234567890", + exclude = { + filetype = { "notify", "lazy", "qf", "diff", "fugitive", "fugitiveblame" }, + buftype = { "nofile", "terminal", "help" }, + }, + } + }, + remove_file = { + close_window = true, + }, }, filters = { dotfiles = false, }, tab = { - sync = { - open = false, - close = false, - ignore = {}, - }, - }, + sync = { + open = false, + close = false, + ignore = {}, + }, + }, git = { enable = false, }, - update_cwd = true, - respect_buf_cwd = true, - update_focused_file = { - enable = true, - update_cwd = true - }, + update_cwd = true, + respect_buf_cwd = true, + update_focused_file = { + enable = true, + update_cwd = true + }, }; bind("${config.neovim.keys.menus.browser}", vim.cmd.NvimTreeToggle) @@ -485,15 +484,17 @@ with lib; plugin = nvim-lspconfig; type = "lua"; config = let - lspConfigs = map (server: '' - lspconfig["${server}"].setup({ - capabilities = capabilities - }) - '') config.neovim.lsps; + lspConfigs = + map (server: '' + lspconfig["${server}"].setup({ + capabilities = capabilities + }) + '') + config.neovim.lsps; in '' - local lspconfig = require('lspconfig') - local capabilities = require'cmp_nvim_lsp'.default_capabilities() - ${lib.concatStrings lspConfigs} + local lspconfig = require('lspconfig') + local capabilities = require'cmp_nvim_lsp'.default_capabilities() + ${lib.concatStrings lspConfigs} ''; } # Notifications @@ -534,7 +535,6 @@ with lib; ''; } ]; - }; }; }; |