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
|
||||
|
||||
lua << EOF
|
||||
local nvim_lsp = require('lspconfig')
|
||||
local coq = require('coq')
|
||||
require("nvim-lsp-installer").setup {
|
||||
automatic_installation = true
|
||||
}
|
||||
|
||||
local nvim_lsp = require('lspconfig')
|
||||
local lsp_extensions = require('lsp_extensions')
|
||||
local coq = require('coq')
|
||||
local null_ls = require('null-ls');
|
||||
|
||||
lsp_extensions.inlay_hints{
|
||||
highlight = "Comment",
|
||||
prefix = " > ",
|
||||
aligned = false,
|
||||
only_current_line = false,
|
||||
enabled = { "ChainingHint" }
|
||||
}
|
||||
|
||||
null_ls.setup{
|
||||
sources = {
|
||||
null_ls.builtins.diagnostics.php,
|
||||
|
@ -16,11 +29,12 @@ null_ls.setup{
|
|||
null_ls.builtins.formatting.phpcbf,
|
||||
}
|
||||
}
|
||||
|
||||
require('colorizer').setup{}
|
||||
require('feline').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 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 'akinsho/bufferline.nvim'
|
||||
Plug 'nathom/filetype.nvim'
|
||||
Plug "williamboman/nvim-lsp-installer"
|
||||
Plug 'williamboman/nvim-lsp-installer'
|
||||
Plug 'neovim/nvim-lspconfig'
|
||||
Plug 'ms-jpq/coq_nvim'
|
||||
Plug 'ms-jpq/coq.artifacts'
|
||||
|
|
Loading…
Reference in a new issue