Skip to content

Commit

Permalink
ref: changed plugins & more treesitter & cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
mthnglac committed Jul 5, 2022
1 parent 4d98cd2 commit 3cc3ef1
Show file tree
Hide file tree
Showing 14 changed files with 111 additions and 63 deletions.
8 changes: 4 additions & 4 deletions nvim/lua/install-plugins.lua
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ plug(tostring(os.getenv("HOME")) .. '/.vim/plugged', {
-- prettier
{'prettier/vim-prettier', ['do'] = 'yarn install --frozen-lockfile --production' },
-- test plugin
'vim-test/vim-test',
'nvim-neotest/neotest',
-- treesitter & extensions
{'nvim-treesitter/nvim-treesitter', ['do'] = ':TSUpdate'},
'windwp/nvim-ts-autotag',
Expand Down Expand Up @@ -67,7 +67,7 @@ plug(tostring(os.getenv("HOME")) .. '/.vim/plugged', {
-- also git blamer
'lewis6991/gitsigns.nvim',
-- commenter
'preservim/nerdcommenter',
'tpope/vim-commentary',
-- Insert or delete brackets, parens, quotes in pair.
'jiangmiao/auto-pairs',
-- crab looking tool. looking for what you do shortly before
Expand All @@ -76,8 +76,8 @@ plug(tostring(os.getenv("HOME")) .. '/.vim/plugged', {
'vuciv/vim-bujo',
-- icons pack
'kyazdani42/nvim-web-devicons',
-- Presentation
'junegunn/goyo.vim',
-- distraction-free
'Pocco81/TrueZen.nvim',
'junegunn/limelight.vim',
-- firenvim
{'glacambre/firenvim', ['do'] = function(_) vim.fn['firenvim#install'](69) end},
Expand Down
1 change: 1 addition & 0 deletions nvim/lua/plugins/coc-nvim/functions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ function _G.statusline()
local filepath = '%f'
local align_section = '%='
local percentage_through_file = '%p%%'

return string.format(
'%s%s%s',
filepath,
Expand Down
36 changes: 18 additions & 18 deletions nvim/lua/plugins/firenvim/variables.lua
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
Variable.g({
firenvim_config = {
['globalSettings'] = { ['alt'] = 'all' },
['localSettings'] = {
['.*'] = {
['cmdline'] = 'neovim',
['priority'] = 0,
['selector'] = 'textarea',
['takeover'] = 'always',
},
['https?://translate.google.com/.*'] = { ['takeover'] = 'never', ['priority'] = 1 },
['https://studio.youtube.com.*'] = { ['takeover'] = 'never', ['priority'] = 1 },
['https?://instagram.com.*'] = { ['takeover'] = 'never', ['priority'] = 1 },
['https?://twitter.com.*'] = { ['takeover'] = 'never', ['priority'] = 1 },
['https://.*gmail.com.*'] = { ['takeover'] = 'never', ['priority'] = 1 },
['https://.*google.com.*'] = { ['takeover'] = 'never', ['priority'] = 1 },
['https?://.*twitch.tv.*'] = { ['takeover'] = 'never', ['priority'] = 1 },
['https?://.*jira.*'] = { ['takeover'] = 'never', ['priority'] = 1 },
}
firenvim_config = {
['globalSettings'] = { ['alt'] = 'all' },
['localSettings'] = {
['.*'] = {
['cmdline'] = 'neovim',
['priority'] = 0,
['selector'] = 'textarea',
['takeover'] = 'always',
},
['https?://translate.google.com/.*'] = { ['takeover'] = 'never', ['priority'] = 1 },
['https://studio.youtube.com.*'] = { ['takeover'] = 'never', ['priority'] = 1 },
['https?://instagram.com.*'] = { ['takeover'] = 'never', ['priority'] = 1 },
['https?://twitter.com.*'] = { ['takeover'] = 'never', ['priority'] = 1 },
['https://.*gmail.com.*'] = { ['takeover'] = 'never', ['priority'] = 1 },
['https://.*google.com.*'] = { ['takeover'] = 'never', ['priority'] = 1 },
['https?://.*twitch.tv.*'] = { ['takeover'] = 'never', ['priority'] = 1 },
['https?://.*jira.*'] = { ['takeover'] = 'never', ['priority'] = 1 },
}
}
})
1 change: 0 additions & 1 deletion nvim/lua/plugins/godot/init.lua

This file was deleted.

3 changes: 0 additions & 3 deletions nvim/lua/plugins/godot/variables.lua

This file was deleted.

4 changes: 0 additions & 4 deletions nvim/lua/plugins/goyo/commands.lua

This file was deleted.

29 changes: 0 additions & 29 deletions nvim/lua/plugins/goyo/functions.lua

This file was deleted.

2 changes: 0 additions & 2 deletions nvim/lua/plugins/goyo/init.lua

This file was deleted.

4 changes: 2 additions & 2 deletions nvim/lua/plugins/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ require('plugins.fugitive')
require('plugins.harpoon-nvim')
require('plugins.git-worktree-nvim')
require('plugins.git-signs-nvim')
require('plugins.godot')
require('plugins.goyo')
require('plugins.indent-blankline-nvim')
require('plugins.matchup')
require('plugins.numb-nvim')
require('plugins.nvim-dap')
require('plugins.nvim-tree')
require('plugins.nvim-treesitter')
require('plugins.octo-nvim')
require('plugins.prettier')
require('plugins.truezen-nvim')
require('plugins.quick-scope-nvim')
require('plugins.telescope')
require('plugins.undotree')
1 change: 1 addition & 0 deletions nvim/lua/plugins/matchup/init.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
require('plugins.matchup.variables')
13 changes: 13 additions & 0 deletions nvim/lua/plugins/matchup/variables.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Variable.g({
matchup_matchparen_enabled = 0,
matchup_matchparen_deferred = 1,
matchup_matchparen_timeout = 300,
matchup_matchparen_deferred_show_delay = 50,
matchup_matchparen_deferred_hide_delay = 700,
matchup_matchparen_hi_surround_always = 0,
matchup_matchparen_nomode = 'i',
})

Variable.b({
matchup_matchparen_timeout = 300,
})
3 changes: 3 additions & 0 deletions nvim/lua/plugins/nvim-treesitter/settings.lua
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,7 @@ require('nvim-treesitter.configs').setup({
matchup = {
enable = true,
},
comment_commentstring = {
enable = true,
},
})
1 change: 1 addition & 0 deletions nvim/lua/plugins/truezen-nvim/init.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
require("plugins.truezen-nvim.settings")
68 changes: 68 additions & 0 deletions nvim/lua/plugins/truezen-nvim/settings.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
require("true-zen").setup({
ui = {
bottom = {
laststatus = 0,
ruler = false,
showmode = false,
showcmd = false,
cmdheight = 1,
},
top = {
showtabline = 0,
},
left = {
number = false,
relativenumber = false,
signcolumn = "no",
},
},
modes = {
ataraxis = {
left_padding = 32,
right_padding = 32,
top_padding = 1,
bottom_padding = 1,
ideal_writing_area_width = {0},
auto_padding = true,
keep_default_fold_fillchars = true,
custom_bg = {"none", ""},
bg_configuration = true,
quit = "untoggle",
ignore_floating_windows = true,
affected_higroups = {
NonText = true,
FoldColumn = true,
ColorColumn = true,
VertSplit = true,
StatusLine = true,
StatusLineNC = true,
SignColumn = true,
},
},
focus = {
margin_of_error = 5,
focus_method = "experimental"
},
},
integrations = {
vim_gitgutter = false,
galaxyline = false,
tmux = false,
gitsigns = false,
nvim_bufferline = false,
limelight = true,
twilight = false,
vim_airline = true,
vim_powerline = false,
vim_signify = false,
express_line = false,
lualine = false,
lightline = false,
feline = false
},
misc = {
on_off_commands = false,
ui_elements_commands = false,
cursor_by_mode = false,
}
})

0 comments on commit 3cc3ef1

Please sign in to comment.