refactor!: use new opts property

This commit is contained in:
Folke Lemaitre 2023-01-08 15:07:07 +01:00
parent abdd658733
commit c137431c14
No known key found for this signature in database
GPG Key ID: 41F8B1FBACAE2040
3 changed files with 53 additions and 41 deletions

View File

@ -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

View File

@ -3,14 +3,9 @@ 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
-- setup_server = function(server, opts)
-- return false
-- end,
---@type lspconfig.options
-- servers = { -- servers = {
-- jsonls = {}, -- jsonls = {},
-- sumneko_lua = { -- sumneko_lua = {
@ -26,16 +21,31 @@ return {
-- }, -- },
-- }, -- },
-- }, -- },
-- -- 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",
-- opts = {
-- ensure_installed = { -- ensure_installed = {
-- "stylua", -- "stylua",
-- "shellcheck", -- "shellcheck",
-- "shfmt", -- "shfmt",
-- "flake8", -- "flake8",
-- }, -- },
-- },
}, },
} }

View File

@ -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",
-- },
-- },
}, },
} }