Add type hints for better editor highlighting
This commit is contained in:
parent
106f9fb7bf
commit
87292dd44e
2 changed files with 7 additions and 7 deletions
|
|
@ -21,7 +21,7 @@ in {
|
||||||
enableCompletion = true;
|
enableCompletion = true;
|
||||||
autosuggestion.enable = true;
|
autosuggestion.enable = true;
|
||||||
syntaxHighlighting.enable = true;
|
syntaxHighlighting.enable = true;
|
||||||
initExtra = ''
|
initExtra = /*bash*/''
|
||||||
autoload -Uz up-line-or-beginning-search down-line-or-beginning-search
|
autoload -Uz up-line-or-beginning-search down-line-or-beginning-search
|
||||||
zle -N up-line-or-beginning-search
|
zle -N up-line-or-beginning-search
|
||||||
zle -N down-line-or-beginning-search
|
zle -N down-line-or-beginning-search
|
||||||
|
|
|
||||||
|
|
@ -34,7 +34,7 @@ in {
|
||||||
cursorline = true;
|
cursorline = true;
|
||||||
|
|
||||||
# Enable linematch diff algorithm
|
# Enable linematch diff algorithm
|
||||||
diffopt.__raw = ''
|
diffopt.__raw = /*lua*/ ''
|
||||||
vim.list_extend(vim.opt.diffopt:get(), { "algorithm:histogram", "linematch:60" })
|
vim.list_extend(vim.opt.diffopt:get(), { "algorithm:histogram", "linematch:60" })
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|
@ -93,7 +93,7 @@ in {
|
||||||
shiftwidth = 2;
|
shiftwidth = 2;
|
||||||
|
|
||||||
# Disable search count wrap and startup messages
|
# Disable search count wrap and startup messages
|
||||||
shortmess.__raw = ''
|
shortmess.__raw = /*lua*/ ''
|
||||||
vim.tbl_deep_extend("force", vim.opt.shortmess:get(), { s = true, I = true })
|
vim.tbl_deep_extend("force", vim.opt.shortmess:get(), { s = true, I = true })
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|
@ -133,7 +133,7 @@ in {
|
||||||
# Save undo history to undo file (in $XDG_STATE_HOME/nvim/undo)
|
# Save undo history to undo file (in $XDG_STATE_HOME/nvim/undo)
|
||||||
undofile = true;
|
undofile = true;
|
||||||
|
|
||||||
viewoptions.__raw = ''
|
viewoptions.__raw = /*lua*/ ''
|
||||||
vim.tbl_filter(function(val) return val ~= "curdir" end, vim.opt.viewoptions:get())
|
vim.tbl_filter(function(val) return val ~= "curdir" end, vim.opt.viewoptions:get())
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|
@ -179,7 +179,7 @@ in {
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
key = "<leader>.";
|
key = "<leader>.";
|
||||||
action.__raw = ''
|
action.__raw = /*lua*/''
|
||||||
function()
|
function()
|
||||||
require("yazi").yazi()
|
require("yazi").yazi()
|
||||||
end
|
end
|
||||||
|
|
@ -193,7 +193,7 @@ in {
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
key = "<leader>fs";
|
key = "<leader>fs";
|
||||||
action.__raw = ''
|
action.__raw = /*lua*/''
|
||||||
function()
|
function()
|
||||||
vim.lsp.buf.format()
|
vim.lsp.buf.format()
|
||||||
vim.cmd.write()
|
vim.cmd.write()
|
||||||
|
|
@ -396,7 +396,7 @@ in {
|
||||||
src = inputs.vim-org-roam;
|
src = inputs.vim-org-roam;
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
extraConfigLua =
|
extraConfigLua = /*lua*/
|
||||||
''
|
''
|
||||||
require('yazi').setup({
|
require('yazi').setup({
|
||||||
opts = {
|
opts = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue