Changed emmet lsp, silenced repeated key warning from which-key, fixed annoying rust-analyzer error
This commit is contained in:
@@ -127,10 +127,30 @@ return {
|
||||
capabilities = capabilities,
|
||||
on_attach = lsp_attach
|
||||
})
|
||||
capabilities.textDocument.completion.completionItem.snippetSupport = true
|
||||
lspconfig.emmet_ls.setup({
|
||||
capabilities = capabilities,
|
||||
on_attach = lsp_attach
|
||||
lspconfig.emmet_language_server.setup({
|
||||
filetypes = { "css", "html", "javascript", "typescript" },
|
||||
-- Read more about this options in the [vscode docs](https://code.visualstudio.com/docs/editor/emmet#_emmet-configuration).
|
||||
-- **Note:** only the options listed in the table are supported.
|
||||
init_options = {
|
||||
---@type table<string, string>
|
||||
includeLanguages = {},
|
||||
--- @type string[]
|
||||
excludeLanguages = {},
|
||||
--- @type string[]
|
||||
extensionsPath = {},
|
||||
--- @type table<string, any> [Emmet Docs](https://docs.emmet.io/customization/preferences/)
|
||||
preferences = {},
|
||||
--- @type boolean Defaults to `true`
|
||||
showAbbreviationSuggestions = true,
|
||||
--- @type "always" | "never" Defaults to `"always"`
|
||||
showExpandedAbbreviation = "always",
|
||||
--- @type boolean Defaults to `false`
|
||||
showSuggestionsAsSnippets = false,
|
||||
--- @type table<string, any> [Emmet Docs](https://docs.emmet.io/customization/syntax-profiles/)
|
||||
syntaxProfiles = {},
|
||||
--- @type table<string, string> [Emmet Docs](https://docs.emmet.io/customization/snippets/#variables)
|
||||
variables = {},
|
||||
},
|
||||
})
|
||||
end
|
||||
},
|
||||
|
@@ -16,9 +16,9 @@ end
|
||||
function maps.moveByRow()
|
||||
-- When text is wrapped, move by terminal rows, not lines, unles a count is provided
|
||||
vim.api.nvim_set_keymap('n', 'j', 'v:count == 0 ? \'gj\' : \'j\'',
|
||||
{ silent = true, expr = true, desc = "Go down 1 line" })
|
||||
{ noremap = true, silent = true, expr = true, desc = "Go down 1 line" })
|
||||
vim.api.nvim_set_keymap('n', 'k', 'v:count == 0 ? \'gk\' : \'k\'',
|
||||
{ silent = true, expr = true, desc = "Go up 1 line" })
|
||||
{ noremap = true, silent = true, expr = true, desc = "Go up 1 line" })
|
||||
end
|
||||
|
||||
function maps.centeredSearch()
|
||||
|
Reference in New Issue
Block a user