mirror of
https://github.com/elkowar/dots-of-war.git
synced 2024-11-05 19:02:24 +00:00
treesitter
This commit is contained in:
parent
751876015c
commit
55f141c539
3 changed files with 42 additions and 7 deletions
|
@ -3,7 +3,8 @@
|
|||
nvim aniseed.nvim
|
||||
utils utils
|
||||
fennel aniseed.fennel
|
||||
wk which-key}
|
||||
wk which-key
|
||||
treesitter-selection nvim-treesitter.incremental_selection}
|
||||
require-macros [macros]})
|
||||
|
||||
|
||||
|
@ -68,12 +69,25 @@
|
|||
{ :prefix "<leader>"})
|
||||
|
||||
(wk.register
|
||||
{
|
||||
"<tab>" "which_key_ignore"
|
||||
{ "<tab>" "which_key_ignore"
|
||||
"gss" "init selection"
|
||||
"z" { :name "+folds"
|
||||
"c" (cmd "foldclose" "close fold")
|
||||
"o" (cmd "foldopen" "open fold")}})
|
||||
|
||||
(wk.register
|
||||
{ "<tab>" "which_key_ignore"}
|
||||
{ :mode "i"})
|
||||
|
||||
(wk.register
|
||||
{ :name "+Selection"
|
||||
"j" "increment selection"
|
||||
"k" "decrement selection"
|
||||
"l" "increment node"
|
||||
"h" "decrement node"}
|
||||
{ :prefix "gs"
|
||||
:mode "v"})
|
||||
|
||||
|
||||
(set nvim.o.timeoutlen 200)
|
||||
|
||||
|
|
|
@ -9,7 +9,8 @@
|
|||
compe compe
|
||||
lsp_signature lsp_signature
|
||||
symbols-outline symbols-outline
|
||||
trouble trouble}
|
||||
trouble trouble
|
||||
nvim-treesitter-configs nvim-treesitter.configs}
|
||||
require-macros [macros]})
|
||||
|
||||
|
||||
|
@ -18,6 +19,19 @@
|
|||
(symbols-outline.setup { :highlight_hovered_item true :show_guides true})
|
||||
(set vim.o.signcolumn "yes")
|
||||
|
||||
(nvim-treesitter-configs.setup
|
||||
{ :ensure_installed "maintained"
|
||||
:highlight { :enable true}
|
||||
:indent { :enable true}
|
||||
:incremental_selection
|
||||
{ :enable true
|
||||
:keymaps { :init_selection "gss"
|
||||
:node_incremental "gsl"
|
||||
:node_decremental "gsh"
|
||||
:scope_incremental "gsj"
|
||||
:scope_decremental "gsk"}}})
|
||||
|
||||
|
||||
; LSP config -------------------------------------------------------------------------------- {{{{{
|
||||
|
||||
(fn on_attach [client bufnr]
|
||||
|
@ -136,4 +150,6 @@
|
|||
|
||||
; }}}}}
|
||||
|
||||
|
||||
|
||||
; vim:foldmarker={{{{{,}}}}}
|
||||
|
|
|
@ -12,13 +12,18 @@ end
|
|||
vim.cmd [[packadd packer.nvim]]
|
||||
|
||||
require("packer").startup(function(use)
|
||||
|
||||
|
||||
use_rocks "rtsisyk/fun"
|
||||
|
||||
use {
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
run = ":TSUpdate"
|
||||
}
|
||||
|
||||
--use "code-biscuits/nvim-biscuits"
|
||||
|
||||
use "simrat39/symbols-outline.nvim"
|
||||
|
||||
use "folke/which-key.nvim"
|
||||
|
||||
use "folke/lsp-trouble.nvim"
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue