diff --git a/init.lua b/init.lua index d2184dd7..c1ed8d01 100644 --- a/init.lua +++ b/init.lua @@ -91,7 +91,7 @@ vim.g.mapleader = ' ' vim.g.maplocalleader = ' ' -- Set to true if you have a Nerd Font installed and selected in the terminal -vim.g.have_nerd_font = false +vim.g.have_nerd_font = true -- [[ Setting options ]] -- See `:help vim.opt` @@ -628,13 +628,34 @@ require('lazy').setup({ -- But for many setups, the LSP (`tsserver`) will work just fine -- tsserver = {}, -- + volar = {}, jedi_language_server = {}, intelephense = {}, terraformls = {}, templ = { filetypes = { 'templ' }, }, - tsserver = {}, + ts_ls = { + settings = { + implicitProjectConfiguration = { + checkJs = true, + }, + }, + init_options = { + plugins = { + { + name = '@vue/typescript-plugin', + location = '/home/ocxm/.asdf/installs/nodejs/23.2.0/lib/node_modules/@vue/typescript-plugin', + languages = { 'javascript', 'typescript', 'vue' }, + }, + }, + }, + filetypes = { + 'javascript', + 'typescript', + 'vue', + }, + }, gopls = { settings = { gopls = { @@ -912,7 +933,23 @@ require('lazy').setup({ main = 'nvim-treesitter.configs', -- Sets main module to use for opts -- [[ Configure Treesitter ]] See `:help nvim-treesitter` opts = { - ensure_installed = { 'bash', 'c', 'diff', 'html', 'lua', 'luadoc', 'markdown', 'markdown_inline', 'query', 'vim', 'vimdoc' }, + ensure_installed = { + 'bash', + 'c', + 'diff', + 'go', + 'html', + 'javascript', + 'lua', + 'luadoc', + 'markdown', + 'markdown_inline', + 'php', + 'query', + 'terraform', + 'vim', + 'vimdoc', + }, -- Autoinstall languages that are not installed auto_install = true, highlight = {