figured out html stuff

This commit is contained in:
Jimmy Bates 2024-04-25 23:12:32 -07:00
parent e82a5f92bf
commit a5968ab027
2 changed files with 47 additions and 45 deletions

View File

@ -143,57 +143,59 @@ return { -- LSP Configuration & Plugins
-- - capabilities (table): Override fields in capabilities. Can be used to disable certain LSP features. -- - capabilities (table): Override fields in capabilities. Can be used to disable certain LSP features.
-- - settings (table): Override the default settings passed when initializing the server. -- - settings (table): Override the default settings passed when initializing the server.
-- For example, to see the options for `lua_ls`, you could go to: https://luals.github.io/wiki/settings/ -- For example, to see the options for `lua_ls`, you could go to: https://luals.github.io/wiki/settings/
local servers = { local servers =
clangd = { {
cmd = { clangd = {
'clangd', cmd = {
'--background-index', 'clangd',
'--offset-encoding=utf-16', '--background-index',
}, '--offset-encoding=utf-16',
},
-- gopls = {},
pyright = {},
deno = {},
ruff = {},
-- rust_analyzer = {},
-- ... etc. See `:help lspconfig-all` for a list of all the pre-configured LSPs
--
-- Some languages (like typescript) have entire language plugins that can be useful:
-- https://github.com/pmizio/typescript-tools.nvim
--
-- But for many setups, the LSP (`tsserver`) will work just fine
tsserver = {
init_options = {
preferences = {
disableSuggestions = true,
}, },
}, },
}, -- gopls = {},
-- pyright = {},
deno = {},
ruff = {},
lua_ls = { -- rust_analyzer = {},
-- cmd = {...}, -- ... etc. See `:help lspconfig-all` for a list of all the pre-configured LSPs
-- filetypes = { ...}, --
-- capabilities = {}, -- Some languages (like typescript) have entire language plugins that can be useful:
settings = { -- https://github.com/pmizio/typescript-tools.nvim
Lua = { --
completion = { -- But for many setups, the LSP (`tsserver`) will work just fine
callSnippet = 'Replace', tsserver = {
init_options = {
preferences = {
disableSuggestions = true,
},
},
},
--
lua_ls = {
-- cmd = {...},
-- filetypes = { ...},
-- capabilities = {},
settings = {
Lua = {
completion = {
callSnippet = 'Replace',
},
-- You can toggle below to ignore Lua_LS's noisy `missing-fields` warnings
-- diagnostics = { disable = { 'missing-fields' } },
}, },
-- You can toggle below to ignore Lua_LS's noisy `missing-fields` warnings
-- diagnostics = { disable = { 'missing-fields' } },
}, },
}, },
}, },
} -- Ensure the servers and tools above are installed
-- To check the current status of installed tools and/or manually install
-- Ensure the servers and tools above are installed -- other tools, you can run
-- To check the current status of installed tools and/or manually install -- :Mason
-- other tools, you can run --
-- :Mason -- You can press `g?` for help in this menu.
-- require('mason').setup()
-- You can press `g?` for help in this menu.
require('mason').setup()
-- You can add other tools here that you want Mason to install -- You can add other tools here that you want Mason to install
-- for you, so that they are available from within Neovim. -- for you, so that they are available from within Neovim.

View File

@ -11,7 +11,7 @@ return {
-- c = { 'cppcheck' }, -- c = { 'cppcheck' },
javascript = { 'eslint' }, javascript = { 'eslint' },
css = { 'stylelint' }, css = { 'stylelint' },
html = { 'tidy' }, html = { 'djlint' },
} }
-- To allow other plugins to add linters to require('lint').linters_by_ft, -- To allow other plugins to add linters to require('lint').linters_by_ft,