idr important stuff

This commit is contained in:
iris committed 2022-08-21 13:09:41 -04:00
1 parent d00a914e63
commit c4f2a1e4cb
5 files changed
+31 -18

No files matched your search

+8 -8
View File
@@ -4,7 +4,7 @@ local config = function()
u.nmap('E', vim.diagnostic.open_float)
u.nmap('[d', vim.diagnostic.goto_prev)
u.nmap(']d', vim.diagnostic.goto_next)
u.nmap('<space>q', vim.diagnostic.setloclist)
u.nmap('<leader>q', vim.diagnostic.setloclist)
local on_attach = function(_, bufnr)
vim.api.nvim_buf_set_option(bufnr, 'omnifunc', 'v:lua.vim.lsp.omnifunc')
@@ -24,15 +24,15 @@ local config = function()
map('K', vim.lsp.buf.hover)
map('<C-k>', vim.lsp.buf.signature_help)
map('<space>wa', vim.lsp.buf.add_workspace_folder)
map('<space>wr', vim.lsp.buf.remove_workspace_folder)
map('<space>wl', function()
map('<leader>wa', vim.lsp.buf.add_workspace_folder)
map('<leader>wr', vim.lsp.buf.remove_workspace_folder)
map('<leader>wl', function()
print(vim.inspect(vim.lsp.buf.list_workspace_folders()))
end)
map('<space>D', vim.lsp.buf.type_definition)
map('<space>rn', vim.lsp.buf.rename)
map('<space>ca', vim.lsp.buf.code_action)
map('<space>fm', vim.lsp.buf.formatting)
map('<leader>D', vim.lsp.buf.type_definition)
map('<leader>rn', vim.lsp.buf.rename)
map('<leader>ca', vim.lsp.buf.code_action)
map('<leader>fm', vim.lsp.buf.formatting)
end
local capabilities = require 'cmp_nvim_lsp'.update_capabilities(