- add python to treesitter
- show relative path instead of filename in lightline
pull/2/head
Alpha Chen 2 years ago
parent 914f75cf09
commit 4740ee11ea
No known key found for this signature in database

@ -104,7 +104,9 @@
(let [colorscheme :powerline (let [colorscheme :powerline
palette-key (.. "lightline#colorscheme#" colorscheme "#palette") palette-key (.. "lightline#colorscheme#" colorscheme "#palette")
palette (. vim.g palette-key)] palette (. vim.g palette-key)]
(set vim.g.lightline {: colorscheme}) (set vim.g.lightline
{: colorscheme
:active {:left [[:mode :paste] [:readonly :relativepath :modified]]}})
(each [_ f (ipairs [:normal :inactive :tabline])] (each [_ f (ipairs [:normal :inactive :tabline])]
(tset palette f :middle [[:NONE :NONE :NONE :NONE]])) (tset palette f :middle [[:NONE :NONE :NONE :NONE]]))
(tset vim.g palette-key palette)) (tset vim.g palette-key palette))
@ -124,7 +126,7 @@
;;; treesitter ;;; treesitter
(let [configs (require :nvim-treesitter.configs) (let [configs (require :nvim-treesitter.configs)
{: setup} configs] {: setup} configs]
(setup {:ensure_installed [:fennel :hcl :lua :ruby :rust :typescript] (setup {:ensure_installed [:fennel :hcl :lua :python :ruby :rust :typescript]
:sync_install false :sync_install false
:highlight {:enable true :additional_vim_regex_highlighting false} :highlight {:enable true :additional_vim_regex_highlighting false}
;; disabling since this is super annoying in Ruby ;; disabling since this is super annoying in Ruby

Loading…
Cancel
Save