Compare commits
No commits in common. "8b1abcfda974d211dca7f940be2f9070b6568745" and "504efd4db490783303623cd3600067dabc40a065" have entirely different histories.
8b1abcfda9
...
504efd4db4
35
nvim/lua/lsp_conf.lua
Normal file
35
nvim/lua/lsp_conf.lua
Normal file
@ -0,0 +1,35 @@
|
||||
local capabilites = require('cmp_nvim_lsp').update_capabilities(vim.lsp.protocol.make_client_capabilities())
|
||||
|
||||
require'lspconfig'.tsserver.setup{
|
||||
capabilites = capabilites
|
||||
}
|
||||
require'lspconfig'.jsonls.setup{
|
||||
capabilites = capabilites
|
||||
}
|
||||
require'lspconfig'.dockerls.setup{
|
||||
capabilites = capabilites
|
||||
}
|
||||
require'lspconfig'.eslint.setup{
|
||||
capabilites = capabilites,
|
||||
settings= {
|
||||
run = "onSave"
|
||||
}
|
||||
}
|
||||
require'lspconfig'.gdscript.setup{
|
||||
capabilites = capabilites
|
||||
}
|
||||
require'lspconfig'.gopls.setup{
|
||||
capabilites = capabilites
|
||||
}
|
||||
require'lspconfig'.rust_analyzer.setup{
|
||||
capabilites = capabilites
|
||||
}
|
||||
require'lspconfig'.cssls.setup{
|
||||
capabilites = capabilites
|
||||
}
|
||||
require'lspconfig'.bashls.setup{
|
||||
capabilites = capabilites
|
||||
}
|
||||
|
||||
require'fzf_lsp'.setup()
|
||||
|
@ -14,7 +14,7 @@ require 'mason-tool-installer'.setup {
|
||||
{ 'bash-language-server', auto_update = true },
|
||||
'lua-language-server',
|
||||
'vim-language-server',
|
||||
--'typescript-language-server',
|
||||
'typescript-language-server',
|
||||
'stylua',
|
||||
},
|
||||
auto_update = false,
|
||||
|
@ -107,24 +107,17 @@ require('mason-lspconfig').setup_handlers {
|
||||
settings = {}
|
||||
}
|
||||
end,
|
||||
['vtsls'] = function()
|
||||
require('lspconfig')['vtsls'].setup {
|
||||
['tsserver'] = function()
|
||||
require('lspconfig')['tsserver'].setup {
|
||||
on_attach = on_attach,
|
||||
flags = lsp_flags,
|
||||
settings = {
|
||||
init_options = {
|
||||
host_info = 'neovim'
|
||||
}
|
||||
}
|
||||
}
|
||||
end,
|
||||
-- ['tsserver'] = function()
|
||||
--
|
||||
-- require('lspconfig')['tsserver'].setup {
|
||||
-- on_attach = on_attach,
|
||||
-- flags = lsp_flags,
|
||||
-- settings = {
|
||||
-- init_options = {
|
||||
-- host_info = 'neovim'
|
||||
-- }
|
||||
-- }
|
||||
-- }
|
||||
-- end,
|
||||
['yamlls'] = function()
|
||||
require('lspconfig')["yamlls"].setup {
|
||||
on_attach = on_attach,
|
||||
|
@ -100,7 +100,7 @@ require 'nvim-tree'.setup {
|
||||
view = {
|
||||
width = 35,
|
||||
hide_root_folder = false,
|
||||
side = 'right',
|
||||
side = 'left',
|
||||
mappings = {
|
||||
custom_only = false,
|
||||
list = {}
|
||||
|
Loading…
Reference in New Issue
Block a user