more telescope stuff

This commit is contained in:
elkowar 2021-07-24 12:46:07 +02:00
parent c786d0a3a7
commit 9ca125a81c
No known key found for this signature in database
GPG key ID: E321AD71B1D1F27F
4 changed files with 12 additions and 5 deletions

View file

@ -38,8 +38,8 @@
"h" (cmd "bprevious" "previous buffer")
"l" (cmd "bnext" "next buffer")
"o" (cmd "Telescope live_grep" "Grep files")
"p" (cmd "Telescope frecency" "Open file-browser")
;"p" (cmd "Telescope find_files" "Open file-browser")
"P" (cmd "Telescope frecency frecency default_text=:CWD:" "Open file-browser")
"p" (cmd "Telescope find_files" "Open file-browser")
":" (cmd "Telescope commands" "Search command with fzf")
"s" (cmd "w" "Save file")
@ -50,7 +50,7 @@
"o" (cmd "SymbolsOutline" "Outline")
"S" (cmd "Telescope lsp_document_symbols" "Symbols in document")
"s" (cmd "Telescope lsp_dynamic_workspace_symbols" "Symbols in workspace")
"t" (cmd "Lspsaga signature_help" "Show signature help")
"T" (cmd "Lspsaga signature_help" "Show signature help")
"n" (cmd "Lspsaga rename" "Rename")
"v" (cmd "Lspsaga code_action" "Apply codeaction")
"A" (cmd "Lspsaga show_cursor_diagnostics" "Cursor diagnostics")
@ -59,6 +59,7 @@
"r" (cmd "Trouble lsp_references" "Show references")
"E" (cmd "Trouble lsp_document_diagnostics" "List diagnostics")
"e" (cmd "Trouble lsp_workspace_diagnostics" "Show diagnostics")
"t" [vim.lsp.buf.declaration "Go to declaration"]
"g" [vim.lsp.buf.definition "Go to definition"]
"i" [vim.lsp.buf.implementation "Show implementation"]
"f" [format "format file"]

View file

@ -114,6 +114,7 @@
:sbdchd/neoformat {}
;; --------------------
:AndrewRadev/splitjoin.vim {}
@ -166,7 +167,9 @@
:vmchale/ats-vim {:ft ["ats" "dats" "sats"]}
:google/vim-jsonnet {}
:bakpakin/fennel.vim {})
:bakpakin/fennel.vim {}
:evanleck/vim-svelte {})
; >>>

View file

@ -65,6 +65,7 @@
(init-lsp :erlangls)
(init-lsp :yamlls)
(init-lsp :html)
(init-lsp :svelte)
;(init-lsp :clangd)
;(init-lsp :ccls)
(init-lsp :cssls {:filestypes ["css" "scss" "less" "stylus"]

View file

@ -4,7 +4,9 @@
actions telescope.actions}})
(telescope.setup
{:defaults {:mappings {:i {:<esc> actions.close}}}})
{:defaults {:mappings {:i {:<esc> actions.close}}
:file_ignore_patterns ["Cargo.lock" ".*.snap" "docs/theme/.*"]}
:extensions {:frecency {:persistent_filter false}}})
(telescope.load_extension "frecency")