configures angular; attempts to configure eslint, prettier
This commit is contained in:
parent
ff670efde0
commit
cd1cd5f116
30
init.lua
30
init.lua
|
@ -575,13 +575,21 @@ require('lazy').setup({
|
||||||
-- https://github.com/pmizio/typescript-tools.nvim
|
-- https://github.com/pmizio/typescript-tools.nvim
|
||||||
--
|
--
|
||||||
-- But for many setups, the LSP (`tsserver`) will work just fine
|
-- But for many setups, the LSP (`tsserver`) will work just fine
|
||||||
-- tsserver = {},
|
tsserver = {},
|
||||||
-- angularls = {},
|
angularls = {
|
||||||
|
config = {
|
||||||
|
root_dir = require('lspconfig.util').root_pattern('angular.json', 'project.json'),
|
||||||
|
},
|
||||||
|
},
|
||||||
-- css_variables = {},
|
-- css_variables = {},
|
||||||
-- cssls = {},
|
cssls = {},
|
||||||
-- html = {},
|
html = {},
|
||||||
-- htmx = {},
|
-- htmx = {},
|
||||||
-- tailwindcss = {},
|
tailwindcss = {},
|
||||||
|
eslint = {
|
||||||
|
cwd = require('lspconfig.util').root_pattern('package.json', '.eslintrc.json', '.eslintrc'),
|
||||||
|
require_cwd = true,
|
||||||
|
},
|
||||||
--
|
--
|
||||||
|
|
||||||
lua_ls = {
|
lua_ls = {
|
||||||
|
@ -663,7 +671,17 @@ require('lazy').setup({
|
||||||
--
|
--
|
||||||
-- You can use a sub-list to tell conform to run *until* a formatter
|
-- You can use a sub-list to tell conform to run *until* a formatter
|
||||||
-- is found.
|
-- is found.
|
||||||
-- javascript = { { "prettierd", "prettier" } },
|
javascript = {
|
||||||
|
{ 'prettierd', 'prettier' },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
formatters = {
|
||||||
|
prettier = {
|
||||||
|
cwd = function()
|
||||||
|
return require('conform.util').root_file { 'package.json', '.prettierrc', '.prettierrc.json', '.prettierrc.js' }
|
||||||
|
end,
|
||||||
|
require_cwd = true,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
@ -7,4 +7,11 @@ vim.bo.tabstop = 4
|
||||||
vim.bo.shiftwidth = 4
|
vim.bo.shiftwidth = 4
|
||||||
vim.bo.expandtab = false
|
vim.bo.expandtab = false
|
||||||
|
|
||||||
return {}
|
return {
|
||||||
|
{
|
||||||
|
'tpope/vim-fugitive',
|
||||||
|
lazy = false,
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
|
-- vim: tabstop=4 shiftwidth=4 noexpandtab
|
||||||
|
|
Loading…
Reference in New Issue