AutoYADM commit: 2025-06-16 17:36:58
This commit is contained in:
parent
2170e3418d
commit
be0ce95ec5
4 changed files with 18 additions and 4 deletions
|
@ -3,6 +3,8 @@ hook global BufCreate .*[.](bib) %{
|
|||
}
|
||||
|
||||
hook global WinSetOption filetype=bibtex %{
|
||||
set-option window tabstop 4
|
||||
set-option window indentwidth 2
|
||||
set-option window comment_line '%'
|
||||
set-option window formatcmd "bibtex-tidy - --curly --drop-all-caps --remove-empty-fields --sort-fields --sort=year,author,id --strip-enclosing-braces --trailing-commas"
|
||||
hook -group bibtex-auto-format window BufWritePre .* %{
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# load plugin
|
||||
eval %sh{kak-lsp}
|
||||
# eval %sh{kak-lsp-diags}
|
||||
|
||||
|
||||
define-command -params 0..1 -docstring %{
|
||||
enable lsp-diags. give -dev switch to run dev build.
|
||||
|
@ -66,7 +66,7 @@ define-command -hidden -override lsp-hide-code-actions %{
|
|||
set-option global lsp_debug false
|
||||
|
||||
# list of filetypes for which LSP will be activated in the window scope
|
||||
declare-option str-list lsp_filetypes python go rust bash fish c cpp typst markdown yaml json jsonc bash sh typescript javascript latex toml
|
||||
declare-option str-list lsp_filetypes python go rust bash fish c cpp typst markdown yaml json jsonc bash sh typescript javascript latex toml bibtex
|
||||
|
||||
declare-option -hidden bool inlay_enabled false
|
||||
|
||||
|
@ -163,6 +163,13 @@ hook -group lsp-filetype-python global BufSetOption filetype=python %{
|
|||
}
|
||||
}
|
||||
|
||||
hook -group lsp-filetype-bibtex global BufSetOption filetype=bibtex %{
|
||||
set-option buffer lsp_servers %{
|
||||
[texlab]
|
||||
root_globs = [".git", ".hg", "."]
|
||||
}
|
||||
}
|
||||
|
||||
remove-hooks global lsp-filetype-latex
|
||||
hook -group lsp-filetype-latex global BufSetOption filetype=latex %{
|
||||
set-option buffer lsp_servers %{
|
||||
|
|
|
@ -196,3 +196,8 @@ map -docstring 'popup shell' global user . ': popup-shell<ret>'
|
|||
# }
|
||||
# }
|
||||
|
||||
try %{
|
||||
evaluate-commands %sh{kak-lsp-diags}
|
||||
map -docstring 'enable diagnostic hover' global ui "'" ': lsp-diag-hover-enable<ret>'
|
||||
map -docstring 'disable diagnostic hover' global ui '"' ': lsp-diag-hover-disable<ret>'
|
||||
}
|
||||
|
|
|
@ -5,8 +5,8 @@ charset = utf-8
|
|||
end_of_line = lf
|
||||
; insert_final_newline = true
|
||||
; trim_trailing_whitespace = true
|
||||
indent_style=space
|
||||
indent_size=4
|
||||
# indent_style=space
|
||||
# indent_size=4
|
||||
|
||||
[*.py]
|
||||
indent_style = space
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue