Skip to content

Commit bb72e11

Browse files
authored
Merge pull request #1 from sashaaKr/nginx_custom_plugins
chore: enable custom plugins, add nginx treesiter
2 parents 7ba7c63 + 0499cbe commit bb72e11

File tree

3 files changed

+20
-7
lines changed

3 files changed

+20
-7
lines changed

init.lua

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,6 @@ P.S. You can delete this when you're done too. It's your config now! :)
9090
vim.g.mapleader = ' '
9191
vim.g.maplocalleader = ' '
9292

93-
vim.wo.foldmethod = 'expr'
94-
vim.wo.foldexpr = 'v:lua.vim.treesitter.foldexpr()'
95-
vim.wo.foldenable = false
96-
9793
-- Set to true if you have a Nerd Font installed and selected in the terminal
9894
vim.g.have_nerd_font = true
9995

@@ -953,7 +949,7 @@ require('lazy').setup({
953949
main = 'nvim-treesitter.configs', -- Sets main module to use for opts
954950
-- [[ Configure Treesitter ]] See `:help nvim-treesitter`
955951
opts = {
956-
ensure_installed = { 'bash', 'c', 'diff', 'html', 'lua', 'luadoc', 'markdown', 'markdown_inline', 'query', 'vim', 'vimdoc', 'rust', 'toml' },
952+
ensure_installed = { 'bash', 'c', 'diff', 'html', 'lua', 'luadoc', 'markdown', 'markdown_inline', 'query', 'vim', 'vimdoc', 'rust', 'toml', 'nginx' },
957953
-- Autoinstall languages that are not installed
958954
auto_install = true,
959955
highlight = {
@@ -986,14 +982,14 @@ require('lazy').setup({
986982
-- require 'kickstart.plugins.indent_line',
987983
-- require 'kickstart.plugins.lint',
988984
require 'kickstart.plugins.autopairs',
989-
-- require 'kickstart.plugins.neo-tree',
985+
require 'kickstart.plugins.neo-tree',
990986
-- require 'kickstart.plugins.gitsigns', -- adds gitsigns recommend keymaps
991987

992988
-- NOTE: The import below can automatically add your own plugins, configuration, etc from `lua/custom/plugins/*.lua`
993989
-- This is the easiest way to modularize your config.
994990
--
995991
-- Uncomment the following line and add your plugins to `lua/custom/plugins/*.lua` to get going.
996-
-- { import = 'custom.plugins' },
992+
{ import = 'custom.plugins' },
997993
--
998994
-- For additional information with loading, sourcing and examples see `:help lazy.nvim-🔌-plugin-spec`
999995
-- Or use telescope!

lua/custom/plugins/folding.lua

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
return {
2+
{
3+
'nvim-treesitter/nvim-treesitter',
4+
init = function()
5+
vim.opt.foldmethod = 'expr'
6+
vim.opt.foldexpr = 'v:lua.vim.treesitter.foldexpr()'
7+
vim.opt.foldenable = false
8+
end,
9+
},
10+
}
11+

lua/custom/plugins/wakatime.lua

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
return {
2+
{
3+
'wakatime/vim-wakatime',
4+
lazy = false,
5+
},
6+
}

0 commit comments

Comments
 (0)