Skip to content

Commit

Permalink
tweak neovim
Browse files Browse the repository at this point in the history
  • Loading branch information
viperML committed Aug 18, 2024
1 parent 4f41dcf commit 93e7efe
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ nvim_lsp.util.default_config = vim.tbl_extend("force", nvim_lsp.util.default_con
})

vim.keymap.set("n", "<leader>.", vim.lsp.buf.hover, { desc = "LSP hover" })
vim.keymap.set("n", "<C-.>", vim.lsp.buf.code_action, { desc = "LSP action" })
vim.keymap.set("n", "<C-Space>", function()
vim.keymap.set({"n", "i"}, "<C-.>", vim.lsp.buf.code_action, { desc = "LSP action" })
vim.keymap.set({"n", "i"}, "<C-Space>", function()
vim.lsp.inlay_hint.enable(not vim.lsp.inlay_hint.is_enabled())
end, { desc = "LSP toggle inlay hints" })
vim.keymap.set("n", "<leader>,", vim.diagnostic.open_float, { desc = "LSP diagnostics" })
Expand Down

0 comments on commit 93e7efe

Please sign in to comment.