feat: Updates to nvim config and snippets

This commit is contained in:
2024-11-18 08:33:38 -05:00
parent eff01f42fd
commit 2e3c750979
11 changed files with 176 additions and 264 deletions

View File

@@ -74,6 +74,7 @@ return {
-- more details: https://github.com/neovim/neovim/issues/19237#issuecomment-2237037154
client.offset_encoding = "utf-8"
end,
cmd = lsp == "sourcekit" and { vim.trim(vim.fn.system("xcrun -f sourcekit-lsp")) } or nil,
})
end
@@ -84,6 +85,7 @@ return {
vim.fn.sign_define(hl, { text = icon, texthl = hl, numhl = "" })
end
-- For some reason I was having trouble getting this to work inside the on-attach, so it's here.
vim.keymap.set("n", "<leader>rn", vim.lsp.buf.rename, { desc = "[R]e-[N]ame" })
end,
}