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" }, -- Normal = { bg = "#000000" },
-- }, -- },
}, },
-- set vim options here (vim.<first_key>.<second_key> = value) -- set vim options here (vim.<first_key>.<second_key> = value)
options = { options = {
opt = { opt = {
@ -225,6 +224,7 @@ local config = {
-- end, -- end,
-- }, -- },
-- themes
{ {
"catppuccin/nvim", "catppuccin/nvim",
as = "catppuccin", as = "catppuccin",
@ -232,9 +232,9 @@ local config = {
vim.g.catppuccin_flavour = "macchiato" -- latte, frappe, macchiato, mocha vim.g.catppuccin_flavour = "macchiato" -- latte, frappe, macchiato, mocha
require("catppuccin").setup() require("catppuccin").setup()
vim.api.nvim_command "colorscheme catppuccin" vim.api.nvim_command "colorscheme catppuccin"
end end,
}, },
{ 'folke/tokyonight.nvim' } { "folke/tokyonight.nvim" },
}, },
-- All other entries override the require("<key>").setup({...}) call for default plugins -- 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)`
@ -256,11 +256,40 @@ local config = {
}, },
-- use mason-lspconfig to configure LSP installations -- 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" }, -- 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 -- 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" }, -- see https://github.com/jayp0521/mason-null-ls.nvim for the available sources
ensure_installed = {
"gitlint",
"hadolint",
"prettier",
"shellcheck",
"stylua",
},
}, },
}, },