mirror of
https://github.com/elkowar/dots-of-war.git
synced 2024-12-24 13:22:23 +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
|
nvim aniseed.nvim
|
||||||
utils utils
|
utils utils
|
||||||
fennel aniseed.fennel
|
fennel aniseed.fennel
|
||||||
wk which-key}
|
wk which-key
|
||||||
|
treesitter-selection nvim-treesitter.incremental_selection}
|
||||||
require-macros [macros]})
|
require-macros [macros]})
|
||||||
|
|
||||||
|
|
||||||
|
@ -68,12 +69,25 @@
|
||||||
{ :prefix "<leader>"})
|
{ :prefix "<leader>"})
|
||||||
|
|
||||||
(wk.register
|
(wk.register
|
||||||
{
|
{ "<tab>" "which_key_ignore"
|
||||||
"<tab>" "which_key_ignore"
|
"gss" "init selection"
|
||||||
"z" { :name "+folds"
|
"z" { :name "+folds"
|
||||||
"c" (cmd "foldclose" "close fold")
|
"c" (cmd "foldclose" "close fold")
|
||||||
"o" (cmd "foldopen" "open 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)
|
(set nvim.o.timeoutlen 200)
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,8 @@
|
||||||
compe compe
|
compe compe
|
||||||
lsp_signature lsp_signature
|
lsp_signature lsp_signature
|
||||||
symbols-outline symbols-outline
|
symbols-outline symbols-outline
|
||||||
trouble trouble}
|
trouble trouble
|
||||||
|
nvim-treesitter-configs nvim-treesitter.configs}
|
||||||
require-macros [macros]})
|
require-macros [macros]})
|
||||||
|
|
||||||
|
|
||||||
|
@ -18,6 +19,19 @@
|
||||||
(symbols-outline.setup { :highlight_hovered_item true :show_guides true})
|
(symbols-outline.setup { :highlight_hovered_item true :show_guides true})
|
||||||
(set vim.o.signcolumn "yes")
|
(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 -------------------------------------------------------------------------------- {{{{{
|
; LSP config -------------------------------------------------------------------------------- {{{{{
|
||||||
|
|
||||||
(fn on_attach [client bufnr]
|
(fn on_attach [client bufnr]
|
||||||
|
@ -136,4 +150,6 @@
|
||||||
|
|
||||||
; }}}}}
|
; }}}}}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
; vim:foldmarker={{{{{,}}}}}
|
; vim:foldmarker={{{{{,}}}}}
|
||||||
|
|
|
@ -12,13 +12,18 @@ end
|
||||||
vim.cmd [[packadd packer.nvim]]
|
vim.cmd [[packadd packer.nvim]]
|
||||||
|
|
||||||
require("packer").startup(function(use)
|
require("packer").startup(function(use)
|
||||||
|
|
||||||
use_rocks "rtsisyk/fun"
|
use_rocks "rtsisyk/fun"
|
||||||
|
|
||||||
|
use {
|
||||||
|
"nvim-treesitter/nvim-treesitter",
|
||||||
|
run = ":TSUpdate"
|
||||||
|
}
|
||||||
|
|
||||||
|
--use "code-biscuits/nvim-biscuits"
|
||||||
|
|
||||||
use "simrat39/symbols-outline.nvim"
|
use "simrat39/symbols-outline.nvim"
|
||||||
|
|
||||||
use "folke/which-key.nvim"
|
use "folke/which-key.nvim"
|
||||||
|
|
||||||
use "folke/lsp-trouble.nvim"
|
use "folke/lsp-trouble.nvim"
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue