install treesitter languages, LSP and DAP

This commit is contained in:
Harouna Traoré 2023-10-22 23:52:29 +02:00
parent db4f9f9dfb
commit 4fa4ed3f9c
No known key found for this signature in database
GPG Key ID: 2F90C44F1BFF0A11
2 changed files with 50 additions and 3 deletions

View File

@ -175,7 +175,7 @@ require('lazy').setup({
opts = { opts = {
options = { options = {
icons_enabled = false, icons_enabled = false,
theme = 'onedark', theme = 'nord',
component_separators = '|', component_separators = '|',
section_separators = '', section_separators = '',
}, },
@ -345,7 +345,29 @@ vim.defer_fn(function()
modules = {}, modules = {},
-- Add languages to be installed here that you want installed for treesitter -- Add languages to be installed here that you want installed for treesitter
ensure_installed = { 'c', 'cpp', 'go', 'lua', 'python', 'rust', 'tsx', 'javascript', 'typescript', 'vimdoc', 'vim', 'bash' }, ensure_installed = {
'bash',
'css',
'dockerfile',
'elixir',
'erlang',
'html',
'javascript',
'jsdoc',
'json',
'lua',
'make',
'markdown',
'regex',
'rust',
'scss',
'svelte',
'tsx',
'typescript',
'vim',
'vimdoc',
'vue',
},
-- Install parsers synchronously (only applied to `ensure_installed`) -- Install parsers synchronously (only applied to `ensure_installed`)
sync_install = false, sync_install = false,
@ -497,12 +519,37 @@ local servers = {
-- tsserver = {}, -- tsserver = {},
-- html = { filetypes = { 'html', 'twig', 'hbs'} }, -- html = { filetypes = { 'html', 'twig', 'hbs'} },
bashls = {},
cmake = {},
cssls = {},
cssmodules_ls = {},
cucumber_language_server = {},
denols = {
root_dir = nvim_lsp.util.root_pattern('deno.json', 'deno.jsonc')
},
diagnosticls = {},
docker_compose_language_service = {},
dockerls = {},
elixirls = {},
-- erlangls = {},
html = {},
jsonls = {},
lua_ls = { lua_ls = {
Lua = { Lua = {
workspace = { checkThirdParty = false }, workspace = { checkThirdParty = false },
telemetry = { enable = false }, telemetry = { enable = false },
}, },
}, },
rust_analyzer = {},
stylelint_lsp = {},
svelte = {},
tailwindcss = {},
tsserver = {
root_dir = nvim_lsp.util.root_pattern('package.json', 'tsconfig.json', 'jsconfig.json'),
},
vimls = {},
vuels = {},
yamlls = {},
} }
-- Setup neovim lua configuration -- Setup neovim lua configuration

View File

@ -38,7 +38,7 @@ return {
-- online, please don't ask me how to install them :) -- online, please don't ask me how to install them :)
ensure_installed = { ensure_installed = {
-- Update this to ensure that you have the debuggers for the langs you want -- Update this to ensure that you have the debuggers for the langs you want
'delve', 'node-debug2-adapter',
}, },
} }