mirror of
https://github.com/zoriya/dotfiles.git
synced 2025-12-06 06:36:17 +00:00
Disable auto lsp signature
This commit is contained in:
@@ -8,3 +8,16 @@ alias "op"="open"
|
||||
alias "ssh"="kitty +kitten ssh"
|
||||
|
||||
export LESS="-Rj.5"
|
||||
|
||||
alias "ls"="ls --color=auto"
|
||||
alias "l"="ls -l"
|
||||
alias "lh"="l -h"
|
||||
alias "la"="ls -la"
|
||||
alias "lla"="ls -la"
|
||||
alias "lc"="l --color"
|
||||
|
||||
alias "m"="l"
|
||||
alias "o"="l"
|
||||
alias "k"="l"
|
||||
|
||||
alias ls="exa --group"
|
||||
|
||||
@@ -1,14 +1,3 @@
|
||||
alias "ls"="ls --color=auto"
|
||||
alias "l"="ls -l"
|
||||
alias "lh"="l -h"
|
||||
alias "la"="ls -la"
|
||||
alias "lla"="ls -la"
|
||||
alias "lc"="l --color"
|
||||
|
||||
alias "m"="l"
|
||||
alias "o"="l"
|
||||
alias "k"="l"
|
||||
|
||||
alias "prename"="perl-rename"
|
||||
|
||||
export CHROME_EXECUTABLE=google-chrome-stable
|
||||
|
||||
@@ -7,6 +7,7 @@ signature.setup({
|
||||
doc_lines = 100,
|
||||
fix_pos = true,
|
||||
always_trigger = true,
|
||||
|
||||
toggle_key = "<C-k>",
|
||||
floating_window = false,
|
||||
})
|
||||
|
||||
|
||||
@@ -40,31 +40,31 @@ npairs.add_rules {
|
||||
end)
|
||||
:use_key(']'),
|
||||
|
||||
Rule('=', '')
|
||||
:with_pair(cond.not_inside_quote())
|
||||
:with_pair(function(opts)
|
||||
local last_char = opts.line:sub(opts.col - 1, opts.col - 1)
|
||||
if last_char:match('[%w%=%s]') then
|
||||
return true
|
||||
end
|
||||
return false
|
||||
end)
|
||||
:replace_endpair(function(opts)
|
||||
local prev_2char = opts.line:sub(opts.col - 2, opts.col - 1)
|
||||
local next_char = opts.line:sub(opts.col, opts.col)
|
||||
next_char = next_char == ' ' and '' or ' '
|
||||
if prev_2char:match('%w$') then
|
||||
return '<bs> =' .. next_char
|
||||
end
|
||||
if prev_2char:match('%=$') then
|
||||
return next_char
|
||||
end
|
||||
if prev_2char:match('=') then
|
||||
return '<bs><bs>=' .. next_char
|
||||
end
|
||||
return ''
|
||||
end)
|
||||
:set_end_pair_length(0)
|
||||
:with_move(cond.none())
|
||||
:with_del(cond.none())
|
||||
-- Rule('=', '')
|
||||
-- :with_pair(cond.not_inside_quote())
|
||||
-- :with_pair(function(opts)
|
||||
-- local last_char = opts.line:sub(opts.col - 1, opts.col - 1)
|
||||
-- if last_char:match('[%w%=%s]') then
|
||||
-- return true
|
||||
-- end
|
||||
-- return false
|
||||
-- end)
|
||||
-- :replace_endpair(function(opts)
|
||||
-- local prev_2char = opts.line:sub(opts.col - 2, opts.col - 1)
|
||||
-- local next_char = opts.line:sub(opts.col, opts.col)
|
||||
-- next_char = next_char == ' ' and '' or ' '
|
||||
-- if prev_2char:match('%w$') then
|
||||
-- return '<bs> =' .. next_char
|
||||
-- end
|
||||
-- if prev_2char:match('%=$') then
|
||||
-- return next_char
|
||||
-- end
|
||||
-- if prev_2char:match('=') then
|
||||
-- return '<bs><bs>=' .. next_char
|
||||
-- end
|
||||
-- return ''
|
||||
-- end)
|
||||
-- :set_end_pair_length(0)
|
||||
-- :with_move(cond.none())
|
||||
-- :with_del(cond.none())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user