Config updates

pull/1479/head
juanmagalhaes 2 months ago
parent 30581c9de2
commit 920e171950

@ -158,6 +158,18 @@ local plugins = {
branch = "master" branch = "master"
}, },
{
"luckasRanarison/tailwind-tools.nvim",
name = "tailwind-tools",
build = ":UpdateRemotePlugins",
dependencies = {
"nvim-treesitter/nvim-treesitter",
"nvim-telescope/telescope.nvim", -- optional
"neovim/nvim-lspconfig", -- optional
},
opts = {} -- your configuration
},
-- require plugins with more complex config -- require plugins with more complex config
require 'core.plugins.todo-comments', require 'core.plugins.todo-comments',

@ -14,7 +14,7 @@ local servers = {
-- pyright = {}, -- pyright = {},
-- rust_analyzer = {}, -- rust_analyzer = {},
eslint = {}, eslint = {},
tsserver = { ts_ls = {
typescript = { typescript = {
settings = { settings = {
preferences = { preferences = {
@ -77,7 +77,9 @@ local function organize_imports()
vim.lsp.buf.execute_command(params) vim.lsp.buf.execute_command(params)
end end
local tsserverKeymaps = require('core.keymaps.async.tsserver') -- TODO Add back OrganizeImports command
local tsserverKeymaps = require('core.keymaps.async.ts_ls')
local tsserver_on_attach = function(_, bufnr) local tsserver_on_attach = function(_, bufnr)
lspKeymaps(bufnr) lspKeymaps(bufnr)
@ -87,7 +89,7 @@ local tsserver_on_attach = function(_, bufnr)
}) })
end end
require('lspconfig').tsserver.setup { require('lspconfig').ts_ls.setup {
on_attach = tsserver_on_attach, on_attach = tsserver_on_attach,
capabilities = capabilities, capabilities = capabilities,
commands = { commands = {

@ -46,9 +46,9 @@ return {
-- Tsserver usually works poorly. Sorry you work with bad languages -- Tsserver usually works poorly. Sorry you work with bad languages
-- You can remove this line if you know what you're doing :) -- You can remove this line if you know what you're doing :)
if client.name == 'tsserver' then -- if client.name == 'tsserver' then
return -- return
end -- end
-- Create an autocmd that will run *before* we save the buffer. -- Create an autocmd that will run *before* we save the buffer.
-- Run the formatting command for the LSP that has just attached. -- Run the formatting command for the LSP that has just attached.

Loading…
Cancel
Save