mirror of
https://git.adityakumar.xyz/config.git
synced 2024-11-21 15:52:52 +00:00
adapt settings to v3.0
This commit is contained in:
parent
9172a28764
commit
8b1911e352
1 changed files with 66 additions and 66 deletions
|
@ -154,11 +154,11 @@ local config = {
|
|||
},
|
||||
disabled = { -- disable formatting capabilities for the listed language servers
|
||||
-- "sumneko_lua",
|
||||
},
|
||||
timeout_ms = 1000, -- default format timeout
|
||||
-- filter = function(client) -- fully override the default formatting function
|
||||
-- return true
|
||||
-- end
|
||||
},
|
||||
timeout_ms = 1000, -- default format timeout
|
||||
-- filter = function(client) -- fully override the default formatting function
|
||||
-- return true
|
||||
-- end
|
||||
},
|
||||
-- easily add or disable built in mappings added during LSP attaching
|
||||
mappings = {
|
||||
|
@ -217,7 +217,7 @@ local config = {
|
|||
|
||||
-- Configure plugins
|
||||
plugins = {
|
||||
init = {
|
||||
--init = {
|
||||
-- You can disable default plugins as follows:
|
||||
-- ["goolord/alpha-nvim"] = { disable = true },
|
||||
|
||||
|
@ -239,37 +239,37 @@ local config = {
|
|||
-- require("lsp_signature").setup()
|
||||
-- end,
|
||||
-- },
|
||||
},
|
||||
--},
|
||||
-- All other entries override the require("<key>").setup({...}) call for default plugins
|
||||
["null-ls"] = function(config) -- overrides `require("null-ls").setup(config)`
|
||||
--["null-ls"] = function(config) -- overrides `require("null-ls").setup(config)`
|
||||
-- config variable is the default configuration table for the setup function call
|
||||
-- local null_ls = require "null-ls"
|
||||
|
||||
-- Check supported formatters and linters
|
||||
-- https://github.com/jose-elias-alvarez/null-ls.nvim/tree/main/lua/null-ls/builtins/formatting
|
||||
-- https://github.com/jose-elias-alvarez/null-ls.nvim/tree/main/lua/null-ls/builtins/diagnostics
|
||||
config.sources = {
|
||||
--config.sources = {
|
||||
-- Set a formatter
|
||||
-- null_ls.builtins.formatting.stylua,
|
||||
-- null_ls.builtins.formatting.prettier,
|
||||
}
|
||||
return config -- return final config table
|
||||
end,
|
||||
treesitter = { -- overrides `require("treesitter").setup(...)`
|
||||
--}
|
||||
--return config -- return final config table
|
||||
--end,
|
||||
-- treesitter = { -- overrides `require("treesitter").setup(...)`
|
||||
-- ensure_installed = { "lua" },
|
||||
},
|
||||
--},
|
||||
-- use mason-lspconfig to configure LSP installations
|
||||
["mason-lspconfig"] = { -- overrides `require("mason-lspconfig").setup(...)`
|
||||
--["mason-lspconfig"] = { -- overrides `require("mason-lspconfig").setup(...)`
|
||||
-- ensure_installed = { "sumneko_lua" },
|
||||
},
|
||||
--},
|
||||
-- use mason-null-ls to configure Formatters/Linter installation for null-ls sources
|
||||
["mason-null-ls"] = { -- overrides `require("mason-null-ls").setup(...)`
|
||||
--["mason-null-ls"] = { -- overrides `require("mason-null-ls").setup(...)`
|
||||
-- ensure_installed = { "prettier", "stylua" },
|
||||
},
|
||||
["mason-nvim-dap"] = { -- overrides `require("mason-nvim-dap").setup(...)`
|
||||
--["mason-nvim-dap"] = { -- overrides `require("mason-nvim-dap").setup(...)`
|
||||
-- ensure_installed = { "python" },
|
||||
},
|
||||
},
|
||||
--},
|
||||
-- },
|
||||
|
||||
-- LuaSnip Options
|
||||
luasnip = {
|
||||
|
|
Loading…
Reference in a new issue