trying fixes for lsp
This commit is contained in:
parent
4be021d80a
commit
5466e911f3
@ -68,6 +68,8 @@
|
|||||||
colorscheme dracula
|
colorscheme dracula
|
||||||
autocmd BufEnter * :setlocal tabstop=2 shiftwidth=2 expandtab
|
autocmd BufEnter * :setlocal tabstop=2 shiftwidth=2 expandtab
|
||||||
autocmd BufEnter *.nix :setlocal tabstop=2 shiftwidth=2 expandtab
|
autocmd BufEnter *.nix :setlocal tabstop=2 shiftwidth=2 expandtab
|
||||||
|
autocmd BufEnter *.py :setlocal tabstop=4 shiftwidth=4 expandtab
|
||||||
|
|
||||||
lua <<EOF
|
lua <<EOF
|
||||||
-- Set up nvim-cmp.
|
-- Set up nvim-cmp.
|
||||||
local cmp = require'cmp'
|
local cmp = require'cmp'
|
||||||
@ -144,7 +146,7 @@
|
|||||||
-- Set up lspconfig.
|
-- Set up lspconfig.
|
||||||
local capabilities = require('cmp_nvim_lsp').default_capabilities()
|
local capabilities = require('cmp_nvim_lsp').default_capabilities()
|
||||||
-- Replace <YOUR_LSP_SERVER> with each lsp server you've enabled.
|
-- Replace <YOUR_LSP_SERVER> with each lsp server you've enabled.
|
||||||
require('lspconfig')[rust_analyzer].setup {
|
require('lspconfig')['rust_analyzer'].setup {
|
||||||
capabilities = capabilities
|
capabilities = capabilities
|
||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user