fixed lua language server name and setup

This commit is contained in:
Daniel Knüppe 2026-02-21 01:20:18 +01:00
parent e79572c9e6
commit 80da3613b7
No known key found for this signature in database
GPG Key ID: 3BD9F4AB38FEAAC6
1 changed files with 2 additions and 2 deletions

View File

@ -614,7 +614,7 @@ require('lazy').setup({
-- You can press `g?` for help in this menu. -- You can press `g?` for help in this menu.
local ensure_installed = vim.tbl_keys(servers or {}) local ensure_installed = vim.tbl_keys(servers or {})
vim.list_extend(ensure_installed, { vim.list_extend(ensure_installed, {
'lua_ls', -- Lua Language server 'lua-language-server', -- Lua Language server
'stylua', -- Used to format Lua code 'stylua', -- Used to format Lua code
-- You can add other tools here that you want Mason to install -- You can add other tools here that you want Mason to install
}) })
@ -853,7 +853,7 @@ require('lazy').setup({
'nvim-treesitter/nvim-treesitter', 'nvim-treesitter/nvim-treesitter',
config = function() config = function()
local filetypes = { 'bash', 'c', 'diff', 'html', 'lua', 'luadoc', 'markdown', 'markdown_inline', 'query', 'vim', 'vimdoc' } local filetypes = { 'bash', 'c', 'diff', 'html', 'lua', 'luadoc', 'markdown', 'markdown_inline', 'query', 'vim', 'vimdoc' }
require('nvim-treesitter').install(filetypes) require('nvim-treesitter').setup(filetypes)
vim.api.nvim_create_autocmd('FileType', { vim.api.nvim_create_autocmd('FileType', {
pattern = filetypes, pattern = filetypes,
callback = function() vim.treesitter.start() end, callback = function() vim.treesitter.start() end,