diff --git a/home/modules/nixvim.nix b/home/modules/nixvim.nix index 2ef257d..39d832c 100644 --- a/home/modules/nixvim.nix +++ b/home/modules/nixvim.nix @@ -27,6 +27,9 @@ enable = true; dir = "~/Documents/Obsidian Vault/"; }; + comment-nvim = { + enable = true; + }; indent-blankline.enable = true; lualine.enable = true; lsp-format = {enable = true;}; @@ -69,8 +72,8 @@ settings = { snippet = { - expand = "function(args) require('luasnip').lsp_expand(args.body) end"; - }; + expand = "function(args) require('luasnip').lsp_expand(args.body) end"; + }; sources = [ {name = "nvim_lsp";} {name = "path";} @@ -86,8 +89,8 @@ #}; mapping = { "" = '' - cmp.mapping.confirm({ select = true }) - ''; + cmp.mapping.confirm({ select = true }) + ''; "" = '' function(fallback) local luasnip = require('luasnip') @@ -338,6 +341,15 @@ key = "Y"; action = ''[["+Y]]''; } + { + mode = ["n"]; + key = "sr"; + action = '' function() + vim.lsp.buf.rename() + end + ''; + lua = true; + } ]; }; }