From 4740ee11ea10c85935d84ef3b874027a48b3e039 Mon Sep 17 00:00:00 2001 From: Alpha Chen Date: Tue, 25 Oct 2022 11:04:52 -0700 Subject: [PATCH] neovim - add python to treesitter - show relative path instead of filename in lightline --- .config/nvim/fnl/init.fnl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.config/nvim/fnl/init.fnl b/.config/nvim/fnl/init.fnl index c265a4d..e9eaaed 100644 --- a/.config/nvim/fnl/init.fnl +++ b/.config/nvim/fnl/init.fnl @@ -104,7 +104,9 @@ (let [colorscheme :powerline palette-key (.. "lightline#colorscheme#" colorscheme "#palette") 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])] (tset palette f :middle [[:NONE :NONE :NONE :NONE]])) (tset vim.g palette-key palette)) @@ -124,7 +126,7 @@ ;;; treesitter (let [configs (require :nvim-treesitter.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 :highlight {:enable true :additional_vim_regex_highlighting false} ;; disabling since this is super annoying in Ruby