Cleanup nvim config

This commit is contained in:
Alexander Navarro 2023-10-26 09:12:49 -03:00
parent 33cce48101
commit d9e2c81e42
16 changed files with 174 additions and 488 deletions

View file

@ -7,7 +7,7 @@ return {
"williamboman/mason-lspconfig.nvim",
-- Additional lua configuration, makes nvim stuff amazing!
{ "folke/neodev.nvim", opts = {} },
{ "folke/neodev.nvim", opts = {} },
},
config = function()
@ -43,6 +43,9 @@ return {
print(vim.inspect(vim.lsp.buf.list_workspace_folders()))
end, "Workspace List Folders")
nmap("<leader>lj", vim.diagnostic.goto_next, "Go to next diagnostic")
nmap("<leader>lk", vim.diagnostic.goto_prev, "Go to prev diagnostic")
-- Create a command `:Format` local to the LSP buffer
vim.api.nvim_buf_create_user_command(bufnr, "Format", function(_)
vim.lsp.buf.format()