nvim: replace lspinstall (depricated)
This commit is contained in:
parent
c00e15e6e6
commit
4245dc1ca2
1 changed files with 12 additions and 18 deletions
|
@ -25,7 +25,6 @@ return require('packer').startup({function()
|
||||||
config = function()
|
config = function()
|
||||||
-- Map :PS to :PackerSync
|
-- Map :PS to :PackerSync
|
||||||
vim.cmd 'command! PS PackerSync'
|
vim.cmd 'command! PS PackerSync'
|
||||||
-- require('packer_compiled')
|
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -50,17 +49,11 @@ return require('packer').startup({function()
|
||||||
-- IDE features
|
-- IDE features
|
||||||
---- LSP (document analysis)
|
---- LSP (document analysis)
|
||||||
use { -- lsp installer
|
use { -- lsp installer
|
||||||
'kabouzeid/nvim-lspinstall',
|
'williamboman/nvim-lsp-installer',
|
||||||
setup = function()
|
|
||||||
-- reload the current file so lsp actually starts for it
|
|
||||||
vim.defer_fn(function()
|
|
||||||
vim.cmd 'silent! e %'
|
|
||||||
end, 0)
|
|
||||||
end,
|
|
||||||
}
|
}
|
||||||
use { -- Default LSP configs
|
use { -- Default LSP configs
|
||||||
'neovim/nvim-lspconfig',
|
'neovim/nvim-lspconfig',
|
||||||
after = {'nvim-lspinstall',},
|
before = 'williamboman/nvim-lsp-installer',
|
||||||
config = function()
|
config = function()
|
||||||
require('blake.lsp').lspconfig()
|
require('blake.lsp').lspconfig()
|
||||||
end
|
end
|
||||||
|
@ -81,7 +74,7 @@ return require('packer').startup({function()
|
||||||
'hrsh7th/cmp-buffer',
|
'hrsh7th/cmp-buffer',
|
||||||
'hrsh7th/cmp-cmdline',
|
'hrsh7th/cmp-cmdline',
|
||||||
'hrsh7th/cmp-emoji',
|
'hrsh7th/cmp-emoji',
|
||||||
}
|
},
|
||||||
}
|
}
|
||||||
use { -- function parameter previews
|
use { -- function parameter previews
|
||||||
'ray-x/lsp_signature.nvim',
|
'ray-x/lsp_signature.nvim',
|
||||||
|
@ -90,7 +83,7 @@ return require('packer').startup({function()
|
||||||
require('blake.lsp').signature()
|
require('blake.lsp').signature()
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
use {
|
use { -- symbols-outline: treesitter-based document outline (:SO)
|
||||||
'simrat39/symbols-outline.nvim',
|
'simrat39/symbols-outline.nvim',
|
||||||
config = function()
|
config = function()
|
||||||
vim.cmd 'command! SO SymbolsOutline'
|
vim.cmd 'command! SO SymbolsOutline'
|
||||||
|
@ -195,7 +188,8 @@ return require('packer').startup({function()
|
||||||
vim.cmd [[
|
vim.cmd [[
|
||||||
let g:indentLine_char = '▏'
|
let g:indentLine_char = '▏'
|
||||||
let g:indentLine_conceallevel = 1
|
let g:indentLine_conceallevel = 1
|
||||||
let g:indentLine_fileTypeExclude = ['markdown', 'help']
|
let g:indentLine_fileTypeExclude = ['markdown', 'help', 'packer']
|
||||||
|
autocmd TermOpen * IndentLinesDisable
|
||||||
]]
|
]]
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
|
@ -234,12 +228,12 @@ return require('packer').startup({function()
|
||||||
require('Comment').setup()
|
require('Comment').setup()
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
use { -- lewis6991: spellsitter: Spell checking in treesitter files
|
-- use { -- lewis6991: spellsitter: Spell checking in treesitter files
|
||||||
'lewis6991/spellsitter.nvim',
|
-- 'lewis6991/spellsitter.nvim',
|
||||||
config = function()
|
-- config = function()
|
||||||
require('spellsitter').setup()
|
-- require('spellsitter').setup()
|
||||||
end,
|
-- end,
|
||||||
}
|
-- }
|
||||||
use { -- lewis6991: spaceless: Strip trailing whitespace as you are editing
|
use { -- lewis6991: spaceless: Strip trailing whitespace as you are editing
|
||||||
'lewis6991/spaceless.nvim',
|
'lewis6991/spaceless.nvim',
|
||||||
config = function()
|
config = function()
|
||||||
|
|
Loading…
Add table
Reference in a new issue