Disable auto lsp signature

This commit is contained in:
Zoe Roux
2022-05-30 17:47:47 +02:00
parent 6997d9e537
commit d073c78835
5 changed files with 51 additions and 39 deletions

View File

@@ -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"

View File

@@ -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

View File

@@ -7,6 +7,7 @@ signature.setup({
doc_lines = 100,
fix_pos = true,
always_trigger = true,
toggle_key = "<C-k>",
floating_window = false,
})

View File

@@ -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())
}

9
toto.py Normal file
View File

@@ -0,0 +1,9 @@
print(2)
x = 306
y = 3
x += 1
x + y * 56816
"Teest"
x
print("testebjkgbsgfeifheifeofheifheofh")