Add LSP installer
This commit is contained in:
parent
c71fde1a01
commit
81541a0486
2 changed files with 18 additions and 4 deletions
|
@ -1,10 +1,23 @@
|
||||||
source ~/.vimrc
|
source ~/.vimrc
|
||||||
|
|
||||||
lua << EOF
|
lua << EOF
|
||||||
local nvim_lsp = require('lspconfig')
|
require("nvim-lsp-installer").setup {
|
||||||
local coq = require('coq')
|
automatic_installation = true
|
||||||
|
}
|
||||||
|
|
||||||
|
local nvim_lsp = require('lspconfig')
|
||||||
|
local lsp_extensions = require('lsp_extensions')
|
||||||
|
local coq = require('coq')
|
||||||
local null_ls = require('null-ls');
|
local null_ls = require('null-ls');
|
||||||
|
|
||||||
|
lsp_extensions.inlay_hints{
|
||||||
|
highlight = "Comment",
|
||||||
|
prefix = " > ",
|
||||||
|
aligned = false,
|
||||||
|
only_current_line = false,
|
||||||
|
enabled = { "ChainingHint" }
|
||||||
|
}
|
||||||
|
|
||||||
null_ls.setup{
|
null_ls.setup{
|
||||||
sources = {
|
sources = {
|
||||||
null_ls.builtins.diagnostics.php,
|
null_ls.builtins.diagnostics.php,
|
||||||
|
@ -16,11 +29,12 @@ null_ls.setup{
|
||||||
null_ls.builtins.formatting.phpcbf,
|
null_ls.builtins.formatting.phpcbf,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
require('colorizer').setup{}
|
require('colorizer').setup{}
|
||||||
require('feline').setup{}
|
require('feline').setup{}
|
||||||
require('bufferline').setup{}
|
require('bufferline').setup{}
|
||||||
|
|
||||||
local servers = { 'html', 'clangd', 'vimls', 'vuels', 'phpactor', 'rust_analyzer', 'tsserver', 'pyright'}
|
local servers = { 'html', 'clangd', 'vimls', 'vuels', 'phpactor', 'rust_analyzer', 'rome', 'pyright', 'svelte', 'cssls', 'texlab'}
|
||||||
|
|
||||||
local on_attach = function (client, bufnr)
|
local on_attach = function (client, bufnr)
|
||||||
local function buf_set_keymap(...) vim.api.nvim_buf_set_keymap(bufnr, ...) end
|
local function buf_set_keymap(...) vim.api.nvim_buf_set_keymap(bufnr, ...) end
|
||||||
|
|
2
.vimrc
2
.vimrc
|
@ -11,7 +11,7 @@ if has('nvim')
|
||||||
Plug 'feline-nvim/feline.nvim'
|
Plug 'feline-nvim/feline.nvim'
|
||||||
Plug 'akinsho/bufferline.nvim'
|
Plug 'akinsho/bufferline.nvim'
|
||||||
Plug 'nathom/filetype.nvim'
|
Plug 'nathom/filetype.nvim'
|
||||||
Plug "williamboman/nvim-lsp-installer"
|
Plug 'williamboman/nvim-lsp-installer'
|
||||||
Plug 'neovim/nvim-lspconfig'
|
Plug 'neovim/nvim-lspconfig'
|
||||||
Plug 'ms-jpq/coq_nvim'
|
Plug 'ms-jpq/coq_nvim'
|
||||||
Plug 'ms-jpq/coq.artifacts'
|
Plug 'ms-jpq/coq.artifacts'
|
||||||
|
|
Loading…
Reference in a new issue