chore: add default lsp servers and null-ls sources

This commit is contained in:
Flo 2022-10-08 15:58:26 +02:00
parent e4fb1f7fd8
commit 851764f3e7

View File

@ -39,7 +39,6 @@ local config = {
-- Normal = { bg = "#000000" },
-- },
},
-- set vim options here (vim.<first_key>.<second_key> = value)
options = {
opt = {
@ -225,16 +224,17 @@ local config = {
-- end,
-- },
-- themes
{
"catppuccin/nvim",
as = "catppuccin",
config = function()
vim.g.catppuccin_flavour = "macchiato" -- latte, frappe, macchiato, mocha
require("catppuccin").setup()
vim.api.nvim_command "colorscheme catppuccin"
end
"catppuccin/nvim",
as = "catppuccin",
config = function()
vim.g.catppuccin_flavour = "macchiato" -- latte, frappe, macchiato, mocha
require("catppuccin").setup()
vim.api.nvim_command "colorscheme catppuccin"
end,
},
{ 'folke/tokyonight.nvim' }
{ "folke/tokyonight.nvim" },
},
-- All other entries override the require("<key>").setup({...}) call for default plugins
["null-ls"] = function(config) -- overrides `require("null-ls").setup(config)`
@ -256,11 +256,40 @@ local config = {
},
-- use mason-lspconfig to configure LSP installations
["mason-lspconfig"] = { -- overrides `require("mason-lspconfig").setup(...)`
-- ensure_installed = { "sumneko_lua" },
-- see https://github.com/williamboman/mason-lspconfig.nvim for the available servers list
ensure_installed = {
"ansiblels",
"arduino_language_server",
"bashls",
"clangd",
"cmake",
"cssls",
"dockerls",
"gopls",
"html",
"jsonls",
"lemminx",
"marksman",
"phpactor",
"perlnavigator",
"pyright",
"quick_lint_js",
"sqlls",
"sumneko_lua",
"taplo",
"yamlls",
},
},
-- use mason-null-ls to configure Formatters/Linter installation for null-ls sources
["mason-null-ls"] = { -- overrides `require("mason-null-ls").setup(...)`
-- ensure_installed = { "prettier", "stylua" },
-- see https://github.com/jayp0521/mason-null-ls.nvim for the available sources
ensure_installed = {
"gitlint",
"hadolint",
"prettier",
"shellcheck",
"stylua",
},
},
},