nvim: completion and styling

This commit is contained in:
Daniel Lundin 2024-11-07 12:05:47 +01:00
parent f3628d2cf1
commit 2bad613a8a
Signed by: dln
SSH key fingerprint: SHA256:dQy1Xj3UiqJYpKR5ggQ2bxgz4jCH8IF+k3AB8o0kmdI
6 changed files with 303 additions and 7 deletions
home/common/nvim

View file

@ -5,6 +5,9 @@
...
}:
{
programs.man.generateCaches = false;
programs.neovim = {
enable = true;
package = inputs.neovim-nightly-overlay.packages.${pkgs.system}.default;
@ -99,11 +102,7 @@
{
plugin = pkgs.vimUtils.buildVimPlugin {
name = "dieter-nvim";
src = pkgs.fetchgit {
url = "https://patagia.dev/Patagia/dieter.nvim.git";
rev = "08fae6ffec4ae70ba6b2e1cafa780ff317ef0b61";
hash = "sha256-C+Vo2SUVfNMkBwuLWqLoA59Pmy9aFwur7fBpfVkLm6Q=";
};
src = ./dieter;
};
type = "lua";
config = ''
@ -115,6 +114,10 @@
plugin = nvim-treesitter-context;
type = "lua";
config = ''
require'treesitter-context'.setup{
enable = false,
}
vim.keymap.set('n', '<space>ut', "<cmd>TSContextToggle<cr>", {noremap = true, silent = true, desc = "TS Context"})
'';
}