Config updates
This commit is contained in:
parent
30581c9de2
commit
920e171950
|
@ -158,6 +158,18 @@ local plugins = {
|
|||
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 'core.plugins.todo-comments',
|
||||
|
|
|
@ -14,7 +14,7 @@ local servers = {
|
|||
-- pyright = {},
|
||||
-- rust_analyzer = {},
|
||||
eslint = {},
|
||||
tsserver = {
|
||||
ts_ls = {
|
||||
typescript = {
|
||||
settings = {
|
||||
preferences = {
|
||||
|
@ -77,7 +77,9 @@ local function organize_imports()
|
|||
vim.lsp.buf.execute_command(params)
|
||||
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)
|
||||
lspKeymaps(bufnr)
|
||||
|
@ -87,7 +89,7 @@ local tsserver_on_attach = function(_, bufnr)
|
|||
})
|
||||
end
|
||||
|
||||
require('lspconfig').tsserver.setup {
|
||||
require('lspconfig').ts_ls.setup {
|
||||
on_attach = tsserver_on_attach,
|
||||
capabilities = capabilities,
|
||||
commands = {
|
||||
|
|
|
@ -46,9 +46,9 @@ return {
|
|||
|
||||
-- Tsserver usually works poorly. Sorry you work with bad languages
|
||||
-- You can remove this line if you know what you're doing :)
|
||||
if client.name == 'tsserver' then
|
||||
return
|
||||
end
|
||||
-- if client.name == 'tsserver' then
|
||||
-- return
|
||||
-- end
|
||||
|
||||
-- Create an autocmd that will run *before* we save the buffer.
|
||||
-- Run the formatting command for the LSP that has just attached.
|
||||
|
|
Loading…
Reference in New Issue