summaryrefslogtreecommitdiff
path: root/programs/neovim
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2025-06-17 22:08:20 -0400
committerFreya Murphy <freya@freyacat.org>2025-06-17 22:08:20 -0400
commit640476ab01c501bbaa5b7854b561201bfe40d2ea (patch)
tree1516ebdda1180a910c4a7ff2e870058a936297e1 /programs/neovim
parentadd formatter (diff)
downloaddotfiles-nix-640476ab01c501bbaa5b7854b561201bfe40d2ea.tar.gz
dotfiles-nix-640476ab01c501bbaa5b7854b561201bfe40d2ea.tar.bz2
dotfiles-nix-640476ab01c501bbaa5b7854b561201bfe40d2ea.zip
fmt
Diffstat (limited to 'programs/neovim')
-rw-r--r--programs/neovim/default.nix100
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;
'';
}
];
-
};
};
};