From 8c0072e74bbd1e9a4f690a392ecd5489cffc66b2 Mon Sep 17 00:00:00 2001 From: nganhkhoa Date: Sat, 16 Mar 2024 21:34:25 +0700 Subject: [PATCH] use yadi for indentation recognition --- fnl/plugins.fnl | 1 + fnl/settings.fnl | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/fnl/plugins.fnl b/fnl/plugins.fnl index 835b9bf..53fae9b 100644 --- a/fnl/plugins.fnl +++ b/fnl/plugins.fnl @@ -24,6 +24,7 @@ (use :ur4ltz/surround.nvim) (use :b3nj5m1n/kommentary) (use :nelstrom/vim-visual-star-search) + (use :timakro/vim-yadi) (use {1 :nvim-treesitter/nvim-treesitter :run ":TSUpdate"}) (use :nvim-treesitter/nvim-treesitter-textobjects) diff --git a/fnl/settings.fnl b/fnl/settings.fnl index 7bed69b..714bdf6 100644 --- a/fnl/settings.fnl +++ b/fnl/settings.fnl @@ -2,6 +2,8 @@ {require {nvim aniseed.nvim nu aniseed.nvim.util}}) +(nvim.ex.autocmd "BufRead * DetectIndent") + ;; theme ; (global github-theme (require :github-theme)) ; (github-theme.setup {:theme_style :dark}) @@ -49,7 +51,7 @@ :icon ""}} :lualine_c {1 {1 :filename :file_status true}} - :lualine_x ["encoding" "fileformat" "filetype"] + :lualine_x ["%{&expandtab?shiftwidth().\"sp\":\"tabs\"}" "encoding" "fileformat" "filetype"] :lualine_y ["progress"] :lualine_z ["location"]} :inactive_sections {:lualine_a {}