diff --git a/init.lua b/init.lua index 1a669df4..64d7cf70 100644 --- a/init.lua +++ b/init.lua @@ -90,10 +90,6 @@ P.S. You can delete this when you're done too. It's your config now! :) vim.g.mapleader = ' ' vim.g.maplocalleader = ' ' -vim.wo.foldmethod = 'expr' -vim.wo.foldexpr = 'v:lua.vim.treesitter.foldexpr()' -vim.wo.foldenable = false - -- Set to true if you have a Nerd Font installed and selected in the terminal vim.g.have_nerd_font = true @@ -953,7 +949,7 @@ require('lazy').setup({ main = 'nvim-treesitter.configs', -- Sets main module to use for opts -- [[ Configure Treesitter ]] See `:help nvim-treesitter` opts = { - ensure_installed = { 'bash', 'c', 'diff', 'html', 'lua', 'luadoc', 'markdown', 'markdown_inline', 'query', 'vim', 'vimdoc', 'rust', 'toml' }, + ensure_installed = { 'bash', 'c', 'diff', 'html', 'lua', 'luadoc', 'markdown', 'markdown_inline', 'query', 'vim', 'vimdoc', 'rust', 'toml', 'nginx' }, -- Autoinstall languages that are not installed auto_install = true, highlight = { @@ -986,14 +982,14 @@ require('lazy').setup({ -- require 'kickstart.plugins.indent_line', -- require 'kickstart.plugins.lint', require 'kickstart.plugins.autopairs', - -- require 'kickstart.plugins.neo-tree', + require 'kickstart.plugins.neo-tree', -- require 'kickstart.plugins.gitsigns', -- adds gitsigns recommend keymaps -- NOTE: The import below can automatically add your own plugins, configuration, etc from `lua/custom/plugins/*.lua` -- This is the easiest way to modularize your config. -- -- Uncomment the following line and add your plugins to `lua/custom/plugins/*.lua` to get going. - -- { import = 'custom.plugins' }, + { import = 'custom.plugins' }, -- -- For additional information with loading, sourcing and examples see `:help lazy.nvim-🔌-plugin-spec` -- Or use telescope! diff --git a/lua/custom/plugins/folding.lua b/lua/custom/plugins/folding.lua new file mode 100644 index 00000000..91e1b3de --- /dev/null +++ b/lua/custom/plugins/folding.lua @@ -0,0 +1,11 @@ +return { + { + 'nvim-treesitter/nvim-treesitter', + init = function() + vim.opt.foldmethod = 'expr' + vim.opt.foldexpr = 'v:lua.vim.treesitter.foldexpr()' + vim.opt.foldenable = false + end, + }, +} + diff --git a/lua/custom/plugins/wakatime.lua b/lua/custom/plugins/wakatime.lua new file mode 100644 index 00000000..f316ef26 --- /dev/null +++ b/lua/custom/plugins/wakatime.lua @@ -0,0 +1,6 @@ +return { + { + 'wakatime/vim-wakatime', + lazy = false, + }, +}