lsp improvements
This commit is contained in:
parent
b37c426e34
commit
75ae3702b1
3 changed files with 10 additions and 14 deletions
|
@ -15,11 +15,9 @@ set langmap=ФИСВУАПРШОЛДЬТЩЗЙКЫЕГМЦЧНЯ;ABCDEFGHIJKLMNO
|
|||
|
||||
" Incrementally show effects of :s, :smagic, :snomagic
|
||||
set icm=split
|
||||
"set signcolumn=yes
|
||||
|
||||
set number
|
||||
|
||||
|
||||
set nobackup nowritebackup
|
||||
set noswapfile
|
||||
|
||||
|
|
|
@ -48,12 +48,16 @@ local lsp_flags = {
|
|||
vim.cmd([[set signcolumn=yes]])
|
||||
|
||||
-- Setting up servers per language
|
||||
-- Nix
|
||||
nvim_lsp['nil_ls'].setup{
|
||||
on_attach = on_attach,
|
||||
flags = lsp_flags,
|
||||
capabilities = capabilities,
|
||||
}
|
||||
-- Default nvim-lsp setup: nil, clangd
|
||||
local servers = { 'nil_ls', 'clangd' }
|
||||
|
||||
for _, serv in ipairs(servers) do
|
||||
nvim_lsp[serv].setup{
|
||||
on_attach = on_attach,
|
||||
flags = lsp_flags,
|
||||
capabilities = capabilities,
|
||||
}
|
||||
end
|
||||
|
||||
-- Rust: using rust tools package
|
||||
local rt = require("rust-tools")
|
||||
|
|
|
@ -80,7 +80,6 @@ return require('packer').startup(function(use)
|
|||
use 'tpope/vim-fugitive'
|
||||
use {
|
||||
'lewis6991/gitsigns.nvim',
|
||||
tag = 'release',
|
||||
config = function()
|
||||
require('gitsigns').setup()
|
||||
end,
|
||||
|
@ -115,11 +114,6 @@ return require('packer').startup(function(use)
|
|||
-- neovim VSCode edition
|
||||
use {
|
||||
'neovim/nvim-lspconfig',
|
||||
ft = {
|
||||
'rust',
|
||||
'nix',
|
||||
-- 'python',
|
||||
},
|
||||
after = { 'nvim-cmp' },
|
||||
requires = { 'simrat39/rust-tools.nvim' },
|
||||
config = function()
|
||||
|
|
Loading…
Add table
Reference in a new issue