LSP updates
This commit is contained in:
@@ -6,6 +6,8 @@ vim.keymap.set('n', '[d', vim.diagnostic.goto_prev, opts)
|
|||||||
vim.keymap.set('n', ']d', vim.diagnostic.goto_next, opts)
|
vim.keymap.set('n', ']d', vim.diagnostic.goto_next, opts)
|
||||||
vim.keymap.set('n', '<space>q', vim.diagnostic.setloclist, opts)
|
vim.keymap.set('n', '<space>q', vim.diagnostic.setloclist, opts)
|
||||||
|
|
||||||
|
vim.lsp.log_levels = vim.log.levels.DEBUG
|
||||||
|
|
||||||
-- Use an on_attach function to only map the following keys
|
-- Use an on_attach function to only map the following keys
|
||||||
-- after the language server attaches to the current buffer
|
-- after the language server attaches to the current buffer
|
||||||
local on_attach = function(client, bufnr)
|
local on_attach = function(client, bufnr)
|
||||||
@@ -41,6 +43,10 @@ require('lspconfig')['pyright'].setup{
|
|||||||
require('lspconfig')['tsserver'].setup{
|
require('lspconfig')['tsserver'].setup{
|
||||||
on_attach = on_attach,
|
on_attach = on_attach,
|
||||||
flags = lsp_flags,
|
flags = lsp_flags,
|
||||||
|
settings = {},
|
||||||
|
init_options = {
|
||||||
|
maxTsServerMemory = "12288",
|
||||||
|
},
|
||||||
}
|
}
|
||||||
require('lspconfig')['rust_analyzer'].setup{
|
require('lspconfig')['rust_analyzer'].setup{
|
||||||
on_attach = on_attach,
|
on_attach = on_attach,
|
||||||
|
|||||||
1
.vimrc
1
.vimrc
@@ -16,6 +16,7 @@ Plug 'tpope/vim-fugitive'
|
|||||||
Plug 'jez/vim-ispc'
|
Plug 'jez/vim-ispc'
|
||||||
Plug 'junegunn/goyo.vim'
|
Plug 'junegunn/goyo.vim'
|
||||||
Plug 'powerman/vim-plugin-AnsiEsc'
|
Plug 'powerman/vim-plugin-AnsiEsc'
|
||||||
|
Plug 'hashivim/vim-terraform'
|
||||||
|
|
||||||
" vim vs. neovim
|
" vim vs. neovim
|
||||||
if has('nvim')
|
if has('nvim')
|
||||||
|
|||||||
Reference in New Issue
Block a user