update
This commit is contained in:
@ -6,7 +6,7 @@ function fish_user_key_bindings
|
|||||||
if functions -q fzf_key_bindings
|
if functions -q fzf_key_bindings
|
||||||
fzf_key_bindings
|
fzf_key_bindings
|
||||||
else
|
else
|
||||||
echo 'WARNING: using `fzf --fish | source`'
|
echo (set_color bryellow)'WARNING: using `fzf --fish | source`'
|
||||||
command fzf --fish | source
|
command fzf --fish | source
|
||||||
end
|
end
|
||||||
functions -e bind
|
functions -e bind
|
||||||
@ -21,7 +21,7 @@ function fish_user_key_bindings
|
|||||||
bind ctrl-f fzf-history-widget
|
bind ctrl-f fzf-history-widget
|
||||||
bind -M insert ctrl-f fzf-history-widget
|
bind -M insert ctrl-f fzf-history-widget
|
||||||
else
|
else
|
||||||
echo 'INFO: fzf not found'
|
echo (set_color brcyan )'INFO: fzf not found'
|
||||||
end
|
end
|
||||||
|
|
||||||
# Unused: alt-z, insert ctrl-r
|
# Unused: alt-z, insert ctrl-r
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
# flags
|
# flags
|
||||||
daemonize
|
daemonize
|
||||||
ignore-empty-password
|
ignore-empty-password
|
||||||
|
show-keyboard-layout
|
||||||
#no-unlock-indicator
|
#no-unlock-indicator
|
||||||
|
|
||||||
# params
|
# params
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
|
|
||||||
ecosystem {
|
ecosystem {
|
||||||
no_update_news = true
|
no_update_news = true
|
||||||
|
no_donation_nag = true
|
||||||
}
|
}
|
||||||
|
|
||||||
general { # {{{
|
general { # {{{
|
||||||
|
@ -3,12 +3,11 @@ vim.lsp.config('tinymist', {
|
|||||||
settings = {
|
settings = {
|
||||||
formatterPrintWidth = 100, -- can't stand 120
|
formatterPrintWidth = 100, -- can't stand 120
|
||||||
formatterMode = "typstyle", -- or typstfmt
|
formatterMode = "typstyle", -- or typstfmt
|
||||||
-- exportPdf = "onDocumentHasTitle", -- default: never
|
exportPdf = "onSave", -- "onDocumentHasTitle", -- default: never
|
||||||
semanticTokens = "enable"
|
semanticTokens = "enable",
|
||||||
},
|
},
|
||||||
single_file_support = true,
|
single_file_support = true,
|
||||||
-- root_dir = function(_, bufnr)
|
root_dir = function(bufnr, callback)
|
||||||
-- return vim.fs.root(bufnr, { ".git" }) or vim.fn.expand "%:p:h"
|
callback(vim.fs.root(bufnr, { ".git" }) or vim.fn.expand "%:p:h")
|
||||||
-- end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -17,5 +17,11 @@ vim.api.nvim_create_autocmd("LspAttach", { -- Overrides the de
|
|||||||
vim.keymap.set("n", "gD", vim.lsp.buf.declaration, { buffer = args.buf })
|
vim.keymap.set("n", "gD", vim.lsp.buf.declaration, { buffer = args.buf })
|
||||||
end
|
end
|
||||||
})
|
})
|
||||||
|
|
||||||
|
vim.api.nvim_create_autocmd({ "BufWritePre" }, {
|
||||||
|
pattern = { "*" },
|
||||||
|
callback = function() vim.o.bomb = (vim.o.fileencoding == "utf-16" or vim.o.fileencoding == "utf-16le") end
|
||||||
|
})
|
||||||
|
|
||||||
--vim.api.nvim_create_autocmd("CursorHold", { callback = lsp.document_highlight })
|
--vim.api.nvim_create_autocmd("CursorHold", { callback = lsp.document_highlight })
|
||||||
--vim.api.nvim_create_autocmd("CursorMoved", { callback = lsp.clear_references })
|
--vim.api.nvim_create_autocmd("CursorMoved", { callback = lsp.clear_references })
|
||||||
|
@ -25,7 +25,7 @@ o.mouse = "a"
|
|||||||
o.spell = false
|
o.spell = false
|
||||||
o.spelllang = "en_us,uk"
|
o.spelllang = "en_us,uk"
|
||||||
o.spelloptions = "camel"
|
o.spelloptions = "camel"
|
||||||
o.fileencodings = "utf-8,cp1251,cp866"
|
-- o.fileencodings = "utf-8,cp1251,cp866"
|
||||||
--o.clipboard = "unnamed"plus?
|
--o.clipboard = "unnamed"plus?
|
||||||
o.iskeyword:append "-" -- is part of the word
|
o.iskeyword:append "-" -- is part of the word
|
||||||
o.formatoptions:append "n" -- indents for numbered lists
|
o.formatoptions:append "n" -- indents for numbered lists
|
||||||
|
Reference in New Issue
Block a user