mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 14:49:14 +00:00
add(nvim): html language server
This commit is contained in:
parent
8a404052b8
commit
589965cadf
5 changed files with 13 additions and 49 deletions
|
|
@ -131,6 +131,12 @@ require "lspconfig".clangd.setup {
|
|||
on_attach = on_attach,
|
||||
capabilities = capabilities,
|
||||
}
|
||||
-- HTML
|
||||
require "lspconfig".html.setup {
|
||||
on_attach = on_attach,
|
||||
capabilities = capabilities,
|
||||
filetypes = { "html", "xhtml" },
|
||||
}
|
||||
|
||||
-- DAP
|
||||
local dap = require "dap"
|
||||
|
|
|
|||
|
|
@ -1,40 +0,0 @@
|
|||
require "presence".setup({
|
||||
-- General options
|
||||
-- Update activity based on autocmd events (if `false`, map or manually execute `:lua package.loaded.presence:update()`)
|
||||
auto_update = true,
|
||||
-- Text displayed when hovered over the Neovim image
|
||||
neovim_image_text = "I use NeoVim btw",
|
||||
-- Main image display (either "neovim" or "file")
|
||||
main_image = "file",
|
||||
-- Use your own Discord application client id (not recommended)
|
||||
client_id = "793271441293967371",
|
||||
-- Log messages at or above this level (one of the following: "debug", "info", "warn", "error")
|
||||
log_level = nil,
|
||||
-- Number of seconds to debounce events (or calls to `:lua package.loaded.presence:update(<filename>, true)`)
|
||||
debounce_timeout = 10,
|
||||
-- Displays the current line number instead of the current project
|
||||
enable_line_number = false,
|
||||
-- A list of strings or Lua patterns that disable Rich Presence if the current file name, path, or workspace matches
|
||||
blacklist = {},
|
||||
-- Configure Rich Presence button(s), either a boolean to enable/disable, a static table (`{{ label = "<label>", url = "<url>" }, ...}`, or a function(buffer: string, repo_url: string|nil): table)
|
||||
buttons = true,
|
||||
-- Custom file asset definitions keyed by file names and extensions (see default config at `lua/presence/file_assets.lua` for reference)
|
||||
file_assets = {},
|
||||
-- Show the timer
|
||||
show_time = false,
|
||||
-- Rich Presence text options
|
||||
-- Format string rendered when an editable file is loaded in the buffer (either string or function(filename: string): string)
|
||||
editing_text = "Editing %s",
|
||||
-- Format string rendered when browsing a file explorer (either string or function(file_explorer_name: string): string)
|
||||
file_explorer_text = "Browsing %s",
|
||||
-- Format string rendered when committing changes in git (either string or function(filename: string): string)
|
||||
git_commit_text = "Committing changes",
|
||||
-- Format string rendered when managing plugins (either string or function(plugin_manager_name: string): string)
|
||||
plugin_manager_text = "Managing plugins",
|
||||
-- Format string rendered when a read-only or unmodifiable file is loaded in the buffer (either string or function(filename: string): string)
|
||||
reading_text = "Reading %s",
|
||||
-- Format string rendered when in a git repository (either string or function(project_name: string|nil, filename: string): string)
|
||||
workspace_text = "Natural Habitat: %s/",
|
||||
-- Format string rendered when `enable_line_number` is set to true (either string or function(line_number: number, line_count: number): string)
|
||||
line_number_text = "Line %s out of %s",
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue