summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/custom/plugins
diff options
context:
space:
mode:
authorKyren223 <Kyren223@proton.me>2024-11-19 00:58:09 +0200
committerKyren223 <Kyren223@proton.me>2024-11-19 00:58:09 +0200
commit92010ca06c47eaaa7d39526d5a0f8b3138dfd59d (patch)
treecb30c2752d80f3c771b3285b3b06dd4647b46dec /.config/nvim/lua/custom/plugins
parent39b82ef71b84077c6ebd9f53ca1f017e3670243a (diff)
Disabled a bunch of nvim stuff, will re-enable later once I sort things out
Diffstat (limited to '.config/nvim/lua/custom/plugins')
-rw-r--r--.config/nvim/lua/custom/plugins/auto-save.lua62
-rw-r--r--.config/nvim/lua/custom/plugins/auto-session.lua54
-rw-r--r--.config/nvim/lua/custom/plugins/colorscheme.lua2
-rw-r--r--.config/nvim/lua/custom/plugins/conform.lua24
-rw-r--r--.config/nvim/lua/custom/plugins/mason.lua30
-rw-r--r--.config/nvim/lua/custom/plugins/telescope.lua4
6 files changed, 88 insertions, 88 deletions
diff --git a/.config/nvim/lua/custom/plugins/auto-save.lua b/.config/nvim/lua/custom/plugins/auto-save.lua
index 5da836b..1fac72f 100644
--- a/.config/nvim/lua/custom/plugins/auto-save.lua
+++ b/.config/nvim/lua/custom/plugins/auto-save.lua
@@ -1,33 +1,33 @@
return {
- 'okuuva/auto-save.nvim',
- cmd = 'ASToggle',
- event = { 'InsertLeave', 'TextChanged' },
- opts = function()
- -- Disable autoformat between automatic saves
- vim.api.nvim_create_autocmd('User', {
- pattern = 'AutoSaveWritePre',
- group = vim.api.nvim_create_augroup('autosave-pre', { clear = true }),
- callback = function(opts)
- local bufnr = opts.data.saved_buffer
- vim.b[bufnr].disable_autoformat = true
- end,
- })
-
- vim.api.nvim_create_autocmd('User', {
- pattern = 'AutoSaveWritePost',
- group = vim.api.nvim_create_augroup('autosave-post', { clear = true }),
- callback = function(opts)
- local bufnr = opts.data.saved_buffer
- vim.b[bufnr].disable_autoformat = false
- end,
- })
-
- return {
- -- execution_message = { enabled = false }, removed
- condition = function(buf)
- -- Save only if the buffer is not a "special buffer"
- return vim.fn.getbufvar(buf, '&buftype') == ''
- end,
- }
- end,
+ -- 'okuuva/auto-save.nvim',
+ -- cmd = 'ASToggle',
+ -- event = { 'InsertLeave', 'TextChanged' },
+ -- opts = function()
+ -- -- Disable autoformat between automatic saves
+ -- vim.api.nvim_create_autocmd('User', {
+ -- pattern = 'AutoSaveWritePre',
+ -- group = vim.api.nvim_create_augroup('autosave-pre', { clear = true }),
+ -- callback = function(opts)
+ -- local bufnr = opts.data.saved_buffer
+ -- vim.b[bufnr].disable_autoformat = true
+ -- end,
+ -- })
+ --
+ -- vim.api.nvim_create_autocmd('User', {
+ -- pattern = 'AutoSaveWritePost',
+ -- group = vim.api.nvim_create_augroup('autosave-post', { clear = true }),
+ -- callback = function(opts)
+ -- local bufnr = opts.data.saved_buffer
+ -- vim.b[bufnr].disable_autoformat = false
+ -- end,
+ -- })
+ --
+ -- return {
+ -- -- execution_message = { enabled = false }, removed
+ -- condition = function(buf)
+ -- -- Save only if the buffer is not a "special buffer"
+ -- return vim.fn.getbufvar(buf, '&buftype') == ''
+ -- end,
+ -- }
+ -- end,
}
diff --git a/.config/nvim/lua/custom/plugins/auto-session.lua b/.config/nvim/lua/custom/plugins/auto-session.lua
index cd8d7a4..33b19ff 100644
--- a/.config/nvim/lua/custom/plugins/auto-session.lua
+++ b/.config/nvim/lua/custom/plugins/auto-session.lua
@@ -1,29 +1,29 @@
return {
- 'rmagatti/auto-session',
- lazy = false,
- config = function()
- vim.opt.sessionoptions = 'blank,buffers,curdir,folds,help,tabpages,winsize,winpos,terminal,localoptions'
- require('auto-session').setup({
- log_level = 'error',
- auto_session_suppress_dirs = { '~/', '/' },
- session_lens = { load_on_setup = false },
- no_restore_cmds = {
- function()
- if vim.fn.argc() == 0 then
- vim.cmd('Alpha')
- end
- end,
- },
- })
-
- local session_lens_setup_done = false
- local function search_session()
- if not session_lens_setup_done then
- require('auto-session').setup_session_lens()
- session_lens_setup_done = true
- end
- require('auto-session.session-lens').search_session()
- end
- vim.keymap.set('n', '<C-s>', search_session, { desc = '[S]ession Manager' })
- end,
+ -- 'rmagatti/auto-session',
+ -- lazy = false,
+ -- config = function()
+ -- vim.opt.sessionoptions = 'blank,buffers,curdir,folds,help,tabpages,winsize,winpos,terminal,localoptions'
+ -- require('auto-session').setup({
+ -- log_level = 'error',
+ -- auto_session_suppress_dirs = { '~/', '/' },
+ -- session_lens = { load_on_setup = false },
+ -- no_restore_cmds = {
+ -- function()
+ -- if vim.fn.argc() == 0 then
+ -- vim.cmd('Alpha')
+ -- end
+ -- end,
+ -- },
+ -- })
+ --
+ -- local session_lens_setup_done = false
+ -- local function search_session()
+ -- if not session_lens_setup_done then
+ -- require('auto-session').setup_session_lens()
+ -- session_lens_setup_done = true
+ -- end
+ -- require('auto-session.session-lens').search_session()
+ -- end
+ -- vim.keymap.set('n', '<C-s>', search_session, { desc = '[S]ession Manager' })
+ -- end,
}
diff --git a/.config/nvim/lua/custom/plugins/colorscheme.lua b/.config/nvim/lua/custom/plugins/colorscheme.lua
index 871066a..916eae2 100644
--- a/.config/nvim/lua/custom/plugins/colorscheme.lua
+++ b/.config/nvim/lua/custom/plugins/colorscheme.lua
@@ -10,5 +10,5 @@ return {
vim.cmd.colorscheme('carbonight')
end,
},
- { dir = '~/projects/carbonight' },
+ { dir = '~/projects/carbonight.nvim' },
}
diff --git a/.config/nvim/lua/custom/plugins/conform.lua b/.config/nvim/lua/custom/plugins/conform.lua
index 5569159..973e5dc 100644
--- a/.config/nvim/lua/custom/plugins/conform.lua
+++ b/.config/nvim/lua/custom/plugins/conform.lua
@@ -12,18 +12,18 @@ return {
---@type conform.setupOpts
opts = {
formatters_by_ft = {
- ['lua'] = { 'stylua' },
- ['c'] = { 'clang-format' },
- ['python'] = { 'isort', 'black' },
- ['rust'] = { 'rustfmt' },
- ['go'] = { 'gofumpt', 'goimports-reviser' },
- ['markdown'] = { 'prettierd', 'prettier', stop_after_first = true },
- ['yaml'] = { 'prettierd' },
- ['json'] = { 'jq' },
- ['html'] = { 'prettierd', 'prettier', stop_after_first = true },
- ['css'] = { 'prettierd', 'prettier', stop_after_first = true },
- ['javascript'] = { 'prettierd', 'prettier', stop_after_first = true },
- ['typescript'] = { 'prettierd', 'prettier', stop_after_first = true },
+ -- ['lua'] = { 'stylua' },
+ -- ['c'] = { 'clang-format' },
+ -- ['python'] = { 'isort', 'black' },
+ -- ['rust'] = { 'rustfmt' },
+ -- ['go'] = { 'gofumpt', 'goimports-reviser' },
+ -- ['markdown'] = { 'prettierd', 'prettier', stop_after_first = true },
+ -- ['yaml'] = { 'prettierd' },
+ -- ['json'] = { 'jq' },
+ -- ['html'] = { 'prettierd', 'prettier', stop_after_first = true },
+ -- ['css'] = { 'prettierd', 'prettier', stop_after_first = true },
+ -- ['javascript'] = { 'prettierd', 'prettier', stop_after_first = true },
+ -- ['typescript'] = { 'prettierd', 'prettier', stop_after_first = true },
},
format_on_save = function(bufnr)
-- Disable with a global or buffer local variable
diff --git a/.config/nvim/lua/custom/plugins/mason.lua b/.config/nvim/lua/custom/plugins/mason.lua
index 7d18810..8232b88 100644
--- a/.config/nvim/lua/custom/plugins/mason.lua
+++ b/.config/nvim/lua/custom/plugins/mason.lua
@@ -17,21 +17,21 @@ return {
lazy = false,
opts = {
ensure_installed = {
- 'stylua', -- lua formatting
- 'clang-format', -- C/C++ formatter
- 'codelldb', -- C/C++ debugger
- 'cpplint', -- C/C++ linter
- 'black', -- python formatter
- 'isort', -- python formatter for imports
- 'flake8', -- python linter
- 'gofumpt', -- go formatter
- -- 'golangci-lint', -- go linter
- 'prettierd', -- multi-lang formatter
- 'prettier', -- prettierd but slower, used as a fallback
- 'jq', -- json formatter
- 'jsonlint', -- json linter
- 'shellcheck', -- bash linter
- 'beautysh', -- shell formatter
+ -- 'stylua', -- lua formatting
+ -- 'clang-format', -- C/C++ formatter
+ -- 'codelldb', -- C/C++ debugger
+ -- 'cpplint', -- C/C++ linter
+ -- 'black', -- python formatter
+ -- 'isort', -- python formatter for imports
+ -- 'flake8', -- python linter
+ -- 'gofumpt', -- go formatter
+ -- -- 'golangci-lint', -- go linter
+ -- 'prettierd', -- multi-lang formatter
+ -- 'prettier', -- prettierd but slower, used as a fallback
+ -- 'jq', -- json formatter
+ -- 'jsonlint', -- json linter
+ -- 'shellcheck', -- bash linter
+ -- 'beautysh', -- shell formatter
},
},
},
diff --git a/.config/nvim/lua/custom/plugins/telescope.lua b/.config/nvim/lua/custom/plugins/telescope.lua
index af0534b..3ba7d0d 100644
--- a/.config/nvim/lua/custom/plugins/telescope.lua
+++ b/.config/nvim/lua/custom/plugins/telescope.lua
@@ -3,8 +3,8 @@ return {
tag = '0.1.5',
dependencies = {
'nvim-lua/plenary.nvim',
- { 'nvim-telescope/telescope-fzf-native.nvim', build = 'make' },
- 'nvim-telescope/telescope-ui-select.nvim',
+ -- { 'nvim-telescope/telescope-fzf-native.nvim', build = 'make' },
+ -- 'nvim-telescope/telescope-ui-select.nvim',
},
cmd = 'Telescope',
config = function()