Minimize the config even more.

This commit is contained in:
CronyAkatsuki 2023-12-26 21:27:59 +01:00
parent 977a474ee8
commit 2ffb9926a5
8 changed files with 2 additions and 165 deletions

View File

@ -1,44 +0,0 @@
require("nvim-autopairs").setup({})
local cmp_autopairs = require("nvim-autopairs.completion.cmp")
local cmp = require("cmp")
local handlers = require("nvim-autopairs.completion.handlers")
cmp.event:on(
"confirm_done",
cmp_autopairs.on_confirm_done({
filetypes = {
-- "*" is a alias to all filetypes
["*"] = {
["("] = {
kind = {
cmp.lsp.CompletionItemKind.Function,
cmp.lsp.CompletionItemKind.Method,
},
handler = handlers["*"],
},
},
lua = {
["("] = {
kind = {
cmp.lsp.CompletionItemKind.Function,
cmp.lsp.CompletionItemKind.Method,
},
---@param char string
---@param item table item completion
---@param bufnr number buffer number
---@param rules table
---@param commit_character table<string>
handler = function(char, item, bufnr, rules, commit_character)
-- Your handler function. Inpect with print(vim.inspect{char, item, bufnr, rules, commit_character})
end,
},
},
-- Disable for tex
tex = false,
sh = false,
bash = false,
zsh = false,
},
})
)

View File

@ -11,7 +11,7 @@ conform.setup({
})
-- only format with keybinding, don't like code chaning everytime I save
vim.keymap.set({ "n", "v" }, "<leader>f", function()
vim.keymap.set({ "n", "v" }, "<leader>vf", function()
conform.format({
lsp_fallback = true,
})

View File

@ -1,25 +0,0 @@
require("colorizer").setup({
filetypes = { "*" },
user_default_options = {
RGB = true, -- #RGB hex codes
RRGGBB = true, -- #RRGGBB hex codes
names = false, -- "Name" codes like Blue or blue
RRGGBBAA = true, -- #RRGGBBAA hex codes
AARRGGBB = true, -- 0xAARRGGBB hex codes
rgb_fn = true, -- CSS rgb() and rgba() functions
hsl_fn = true, -- CSS hsl() and hsla() functions
css = true, -- Enable all CSS features: rgb_fn, hsl_fn, names, RGB, RRGGBB
css_fn = true, -- Enable all CSS *functions*: rgb_fn, hsl_fn
-- Available modes for `mode`: foreground, background, virtualtext
mode = "background", -- Set the display mode.
-- Available methods are false / true / "normal" / "lsp" / "both"
-- True is same as normal
tailwind = false, -- Enable tailwind colors
-- parsers can contain values used in |user_default_options|
sass = { enable = false, parsers = { "css" } }, -- Enable sass colors
virtualtext = "",
-- update color values even if buffer is not focused
-- example use: cmp_menu, cmp_docs
always_update = true,
},
})

View File

@ -1,18 +0,0 @@
require("ibl").setup({
indent = { char = "" },
scope = { enabled = false },
exclude = {
filetypes = {
"help",
"alpha",
"dashboard",
"neo-tree",
"Trouble",
"lazy",
"mason",
"notify",
"toggleterm",
"lazyterm",
},
},
})

View File

@ -1,22 +0,0 @@
require("mini.indentscope").setup({
symbol = "",
options = { try_as_border = true },
})
vim.api.nvim_create_autocmd("FileType", {
pattern = {
"help",
"alpha",
"dashboard",
"neo-tree",
"Trouble",
"lazy",
"mason",
"notify",
"toggleterm",
"lazyterm",
},
callback = function()
vim.b.miniindentscope_disable = true
end,
})

View File

@ -1,10 +0,0 @@
require("mkdnflow").setup({
modules = {
bib = false,
yaml = false,
cmp = false,
},
links = {
conceal = true,
},
})

View File

@ -1,4 +0,0 @@
vim.keymap.set("n", "C-h>", "<cmd>TmuxNavigateLeft<cr>", { desc = "Window Left" })
vim.keymap.set("n", "C-j>", "<cmd>TmuxNavigateDown<cr>", { desc = "Window Down" })
vim.keymap.set("n", "C-k>", "<cmd>TmuxNavigateUp<cr>", { desc = "Window Up" })
vim.keymap.set("n", "C-l>", "<cmd>TmuxNavigateRight<cr>", { desc = "Window Right" })

View File

@ -38,18 +38,12 @@ require("lazy").setup({
{ "L3MON4D3/LuaSnip" },
{ "rafamadriz/friendly-snippets" },
-- Nice lsp info
{ "j-hui/fidget.nvim", opts = {} },
-- Additional neovim docs
"folke/neodev.nvim",
opts = {},
},
},
-- Emacs which key but in a much nicer form
{ "folke/which-key.nvim", opts = {}, event = "VeryLazy" },
{
-- Adds git related signs to the gutter, as well as utilities for managing changes
"lewis6991/gitsigns.nvim",
@ -62,30 +56,8 @@ require("lazy").setup({
priority = 1000,
},
{
-- Set lualine as statusline
"nvim-lualine/lualine.nvim",
-- See `:help lualine.txt`
opts = {
options = {
icons_enabled = false,
theme = "catppuccin",
component_separators = "|",
section_separators = "",
},
},
},
{
-- show indent line
"lukas-reineke/indent-blankline.nvim",
},
-- highlight indentscope
"echasnovski/mini.indentscope",
-- "gc" to comment visual regions/lines
{ "numToStr/Comment.nvim", opts = {}, event = "VeryLazy" },
{ "numToStr/Comment.nvim", opts = {}},
-- Fuzzy Finder (files, lsp, etc)
{
@ -119,23 +91,14 @@ require("lazy").setup({
},
},
"NvChad/nvim-colorizer.lua",
{
"stevearc/dressing.nvim",
event = "VeryLazy",
opts = {
input = { default_prompt = "" },
select = { backend = { "telescope", "builtin" } },
},
},
-- nice tmux integration
"christoomey/vim-tmux-navigator",
-- smart autopairs
"windwp/nvim-autopairs",
{
-- nicer notification's
"rcarriga/nvim-notify",
@ -144,9 +107,6 @@ require("lazy").setup({
end,
},
-- markdown editing super powered
"jakewvincent/mkdnflow.nvim",
-- additional formater support
"stevearc/conform.nvim",