mirror of https://github.com/LazyVim/starter
refactor!: use new `opts` property
parent
abdd658733
commit
c137431c14
|
@ -8,7 +8,7 @@ return {
|
||||||
-- change trouble config
|
-- change trouble config
|
||||||
-- {
|
-- {
|
||||||
-- "folke/trouble.nvim",
|
-- "folke/trouble.nvim",
|
||||||
-- config = { use_diagnostic_signs = true },
|
-- opts = { use_diagnostic_signs = true },
|
||||||
-- },
|
-- },
|
||||||
|
|
||||||
-- add symbols-outline
|
-- add symbols-outline
|
||||||
|
|
|
@ -3,39 +3,49 @@ return {
|
||||||
-- uncomment and add lsp servers with their config to servers below
|
-- uncomment and add lsp servers with their config to servers below
|
||||||
{
|
{
|
||||||
"neovim/nvim-lspconfig",
|
"neovim/nvim-lspconfig",
|
||||||
-- you can do any additional lsp server setup here
|
-- ---@class PluginLspOpts
|
||||||
-- return true if you don't want this server to be setup with lspconfig
|
-- opts = {
|
||||||
---@param server string lsp server name
|
-- ---@type lspconfig.options
|
||||||
---@param opts _.lspconfig.options any options set for the server
|
-- servers = {
|
||||||
-- setup_server = function(server, opts)
|
-- jsonls = {},
|
||||||
-- return false
|
-- sumneko_lua = {
|
||||||
-- end,
|
-- settings = {
|
||||||
---@type lspconfig.options
|
-- Lua = {
|
||||||
-- servers = {
|
-- workspace = {
|
||||||
-- jsonls = {},
|
-- checkThirdParty = false,
|
||||||
-- sumneko_lua = {
|
-- },
|
||||||
-- settings = {
|
-- completion = {
|
||||||
-- Lua = {
|
-- callSnippet = "Replace",
|
||||||
-- workspace = {
|
-- },
|
||||||
-- checkThirdParty = false,
|
|
||||||
-- },
|
|
||||||
-- completion = {
|
|
||||||
-- callSnippet = "Replace",
|
|
||||||
-- },
|
-- },
|
||||||
-- },
|
-- },
|
||||||
-- },
|
-- },
|
||||||
-- },
|
-- },
|
||||||
|
-- -- you can do any additional lsp server setup here
|
||||||
|
-- -- return true if you don't want this server to be setup with lspconfig
|
||||||
|
-- ---@type table<string, fun(server:string, opts:_.lspconfig.options):boolean?>
|
||||||
|
-- setup = {
|
||||||
|
-- -- example to setup with typescript.nvim
|
||||||
|
-- -- tsserver = function(_, opts)
|
||||||
|
-- -- require("typescript").setup({ server = opts })
|
||||||
|
-- -- return true
|
||||||
|
-- -- end,
|
||||||
|
-- -- Specify * to use this function as a fallback for any server
|
||||||
|
-- -- ["*"] = function(server, opts) end,
|
||||||
|
-- },
|
||||||
-- },
|
-- },
|
||||||
},
|
},
|
||||||
|
|
||||||
-- uncomment and add tools to ensure_installed below
|
-- uncomment and add tools to ensure_installed below
|
||||||
{
|
{
|
||||||
"williamboman/mason.nvim",
|
"williamboman/mason.nvim",
|
||||||
-- ensure_installed = {
|
-- opts = {
|
||||||
-- "stylua",
|
-- ensure_installed = {
|
||||||
-- "shellcheck",
|
-- "stylua",
|
||||||
-- "shfmt",
|
-- "shellcheck",
|
||||||
-- "flake8",
|
-- "shfmt",
|
||||||
|
-- "flake8",
|
||||||
|
-- },
|
||||||
-- },
|
-- },
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,22 +3,24 @@ return {
|
||||||
-- treesitter
|
-- treesitter
|
||||||
{
|
{
|
||||||
"nvim-treesitter/nvim-treesitter",
|
"nvim-treesitter/nvim-treesitter",
|
||||||
ensure_installed = {
|
-- opts = {
|
||||||
"bash",
|
-- ensure_installed = {
|
||||||
"help",
|
-- "bash",
|
||||||
"html",
|
-- "help",
|
||||||
"javascript",
|
-- "html",
|
||||||
"json",
|
-- "javascript",
|
||||||
"lua",
|
-- "json",
|
||||||
"markdown",
|
-- "lua",
|
||||||
"markdown_inline",
|
-- "markdown",
|
||||||
"python",
|
-- "markdown_inline",
|
||||||
"query",
|
-- "python",
|
||||||
"regex",
|
-- "query",
|
||||||
"tsx",
|
-- "regex",
|
||||||
"typescript",
|
-- "tsx",
|
||||||
"vim",
|
-- "typescript",
|
||||||
"yaml",
|
-- "vim",
|
||||||
},
|
-- "yaml",
|
||||||
|
-- },
|
||||||
|
-- },
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue