mason-lspconfig is kinda broken on first run
This commit is contained in:
parent
3344392f1e
commit
c8917beb8e
3 changed files with 24 additions and 12 deletions
|
@ -6,25 +6,29 @@ require("lazy").setup({
|
|||
keys = require('plugins.nvim-tree').keys },
|
||||
|
||||
{ 'nvim-treesitter/nvim-treesitter',
|
||||
config = require('plugins.treesitter').config,
|
||||
build = ':TSUpdate',
|
||||
priority = 200},
|
||||
-- treesitter need to be configured after load,
|
||||
-- so let here be init, not config
|
||||
init = require('plugins.treesitter'),
|
||||
build = ':TSUpdate' },
|
||||
-- neovim lsp plugins and depencencies
|
||||
{ 'neovim/nvim-lspconfig',
|
||||
init = require('plugins.nvim-lspconfig').init,
|
||||
priority = 100},
|
||||
priority = 60 },
|
||||
{ 'hrsh7th/cmp-nvim-lsp' },
|
||||
{ 'hrsh7th/cmp-buffer' },
|
||||
{ 'hrsh7th/cmp-cmdline' },
|
||||
{ 'hrsh7th/cmp-path' },
|
||||
{ 'hrsh7th/nvim-cmp',
|
||||
init = require('plugins.nvim-cmp').init,
|
||||
dependencies = { { 'onsails/lspkind.nvim' } } },
|
||||
dependencies = { 'onsails/lspkind.nvim' } },
|
||||
{ 'williamboman/mason.nvim',
|
||||
config = {} },
|
||||
config = {},
|
||||
priority = 30 },
|
||||
-- mason-lspconfig might need disabling on first run
|
||||
{ 'williamboman/mason-lspconfig.nvim',
|
||||
config = require('plugins.mason-lspconfig').config,
|
||||
dependencies = { 'williamboman/mason.nvim' } },
|
||||
dependencies = { 'williamboman/mason.nvim' },
|
||||
priority = 55 },
|
||||
{ 'mfussenegger/nvim-lint',
|
||||
init = require('plugins.nvim-lint').init },
|
||||
{},
|
||||
|
@ -77,7 +81,7 @@ require("lazy").setup({
|
|||
{ 'olimorris/onedarkpro.nvim' },
|
||||
{ 'ellisonleao/gruvbox.nvim' },
|
||||
{ 'Mofiqul/dracula.nvim',
|
||||
priority = 300},
|
||||
priority = 300 },
|
||||
{ 'vigoux/oak' },
|
||||
{ 'NLKNguyen/papercolor-theme' },
|
||||
{ 'bluz71/vim-moonfly-colors' },
|
||||
|
|
|
@ -20,6 +20,14 @@ return {
|
|||
"yamlls",
|
||||
"lemminx",
|
||||
"marksman"
|
||||
}
|
||||
},
|
||||
-- Whether servers that are set up (via lspconfig) should be automatically installed if they're not already installed.
|
||||
-- This setting has no relation with the `ensure_installed` setting.
|
||||
-- Can either be:
|
||||
-- - false: Servers are not automatically installed.
|
||||
-- - true: All servers set up via lspconfig are automatically installed.
|
||||
-- - { exclude: string[] }: All servers set up via lspconfig, except the ones provided in the list, are automatically installed.
|
||||
-- Example: automatic_installation = { exclude = { "rust_analyzer", "solargraph" } }
|
||||
automatic_installation = false,
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
return {
|
||||
config = {
|
||||
return function()
|
||||
require 'nvim-treesitter.configs'.setup {
|
||||
-- A list of parser names, or "all"
|
||||
ensure_installed = { "html", "dockerfile", "cpp", "css", "markdown", "c", "gitcommit", "bash", "phpdoc", "comment", "python", "http", "php", "regex", "json5", "lua", "gitattributes", "gitignore", "json", "git_rebase", "javascript", "perl", "sql", "yaml" },
|
||||
|
||||
|
@ -41,4 +41,4 @@ return {
|
|||
additional_vim_regex_highlighting = false, -- default=false
|
||||
},
|
||||
}
|
||||
}
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue