diff options
author | A Farzat <a@farzat.xyz> | 2024-10-01 23:48:41 +0900 |
---|---|---|
committer | A Farzat <a@farzat.xyz> | 2024-10-01 23:48:41 +0900 |
commit | 7cbefbb9acea27c18718d32a3c20b87886971e8a (patch) | |
tree | c0ffa3090f548776f75667105086e923a7d5411e | |
parent | 6504a7df972c7a937ab58b103edb8c8f3ebb594b (diff) | |
download | nvim-7cbefbb9acea27c18718d32a3c20b87886971e8a.tar.gz nvim-7cbefbb9acea27c18718d32a3c20b87886971e8a.zip |
Add the remaining plugin-settings
-rw-r--r-- | plugin-settings/nvim-treesitter.lua | 13 | ||||
-rw-r--r-- | plugin-settings/nvim-ts-autotag.lua | 8 | ||||
-rw-r--r-- | plugin-settings/orgmode.lua | 7 | ||||
-rw-r--r-- | plugin-settings/vim-airline.vim | 1 | ||||
-rw-r--r-- | plugin-settings/vim-better-whitespace.vim | 4 | ||||
-rw-r--r-- | plugin-settings/vimtex.vim | 7 | ||||
-rw-r--r-- | plugins.vim | 2 |
7 files changed, 41 insertions, 1 deletions
diff --git a/plugin-settings/nvim-treesitter.lua b/plugin-settings/nvim-treesitter.lua new file mode 100644 index 0000000..4afe91e --- /dev/null +++ b/plugin-settings/nvim-treesitter.lua @@ -0,0 +1,13 @@ +require("nvim-treesitter.configs").setup({ + -- A list of parser names, or "all" (the four listed parsers should always be installed) + ensure_installed = { "c", "lua", "vim" }, + ignore_install = { "org" }, + + -- Automatically install missing parsers when entering buffer + -- Recommendation: set to false if you don't have `tree-sitter` CLI installed locally + auto_install = true, + + highlight = { + enable = true, + }, +}) diff --git a/plugin-settings/nvim-ts-autotag.lua b/plugin-settings/nvim-ts-autotag.lua new file mode 100644 index 0000000..92c7ea3 --- /dev/null +++ b/plugin-settings/nvim-ts-autotag.lua @@ -0,0 +1,8 @@ +require('nvim-ts-autotag').setup({ + opts = { + -- Defaults + enable_close = true, -- Auto close tags + enable_rename = true, -- Auto rename pairs of tags + enable_close_on_slash = false -- Auto close on trailing </ + }, +}) diff --git a/plugin-settings/orgmode.lua b/plugin-settings/orgmode.lua new file mode 100644 index 0000000..7f7428e --- /dev/null +++ b/plugin-settings/orgmode.lua @@ -0,0 +1,7 @@ +local xdg_data = os.getenv("XDG_DATA_HOME") or "~/.local/share" +local orgmode_files = xdg_data .. "/orgmode" + +require('orgmode').setup({ + org_agenda_files = {orgmode_files .. '/**/*'}, + org_default_notes_file = orgmode_files .. 'default.org', +}) diff --git a/plugin-settings/vim-airline.vim b/plugin-settings/vim-airline.vim new file mode 100644 index 0000000..b4145dd --- /dev/null +++ b/plugin-settings/vim-airline.vim @@ -0,0 +1 @@ +let g:airline_powerline_fonts = 1 diff --git a/plugin-settings/vim-better-whitespace.vim b/plugin-settings/vim-better-whitespace.vim new file mode 100644 index 0000000..51203ba --- /dev/null +++ b/plugin-settings/vim-better-whitespace.vim @@ -0,0 +1,4 @@ +let g:better_whitespace_enabled=1 +let g:strip_whitespace_on_save=1 +let g:strip_whitelines_at_eof=1 +let g:strip_only_modified_lines=1 diff --git a/plugin-settings/vimtex.vim b/plugin-settings/vimtex.vim new file mode 100644 index 0000000..f90494b --- /dev/null +++ b/plugin-settings/vimtex.vim @@ -0,0 +1,7 @@ +let g:tex_flavor = 'latex' +let g:vimtex_view_method='zathura' +let g:vimtex_compiler_progname='nvr' +let g:vimtex_quickfix_mode = 0 +"let g:tex_conceal = '' +"let g:tex_syntax_conceal_default = 0 +"let g:vimtex_quickfix_autoclose_after_keystrokes = 1 diff --git a/plugins.vim b/plugins.vim index feb3ef5..70c559b 100644 --- a/plugins.vim +++ b/plugins.vim @@ -39,7 +39,7 @@ Plug 'https://github.com/numtostr/Comment.nvim' " Smart and powerful comment plu Plug 'https://github.com/tpope/vim-abolish' " Easily search for, substitute, and abbreviate multiple variants of a word. Plug 'https://github.com/bfredl/nvim-miniyank' " Killring-alike plugin for neovim and vim 8 with no default mappings. Plug 'https://github.com/sophacles/vim-processing' " For processing.org -Plug 'https://github.com/alvan/vim-closetag' " Auto close (X)HTML tags. +Plug 'https://github.com/windwp/nvim-ts-autotag' " Use treesitter to auto close and auto rename html tag Plug 'https://github.com/dylanaraps/wal.vim' " Generate and change colorschemes on the fly. Plug 'https://github.com/dkprice/vim-easygrep' " Fast and Easy Find and Replace Across Multiple Files. Plug 'https://github.com/lambdalisue/suda.vim' " An alternative sudo.vim for Vim and Neovim, limited support sudo in Windows. |