Minimize the config even more.
This commit is contained in:
parent
977a474ee8
commit
2ffb9926a5
@ -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,
|
|
||||||
},
|
|
||||||
})
|
|
||||||
)
|
|
@ -11,7 +11,7 @@ conform.setup({
|
|||||||
})
|
})
|
||||||
|
|
||||||
-- only format with keybinding, don't like code chaning everytime I save
|
-- 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({
|
conform.format({
|
||||||
lsp_fallback = true,
|
lsp_fallback = true,
|
||||||
})
|
})
|
||||||
|
@ -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,
|
|
||||||
},
|
|
||||||
})
|
|
@ -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",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
})
|
|
@ -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,
|
|
||||||
})
|
|
@ -1,10 +0,0 @@
|
|||||||
require("mkdnflow").setup({
|
|
||||||
modules = {
|
|
||||||
bib = false,
|
|
||||||
yaml = false,
|
|
||||||
cmp = false,
|
|
||||||
},
|
|
||||||
links = {
|
|
||||||
conceal = true,
|
|
||||||
},
|
|
||||||
})
|
|
@ -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" })
|
|
@ -38,18 +38,12 @@ require("lazy").setup({
|
|||||||
{ "L3MON4D3/LuaSnip" },
|
{ "L3MON4D3/LuaSnip" },
|
||||||
{ "rafamadriz/friendly-snippets" },
|
{ "rafamadriz/friendly-snippets" },
|
||||||
|
|
||||||
-- Nice lsp info
|
|
||||||
{ "j-hui/fidget.nvim", opts = {} },
|
|
||||||
|
|
||||||
-- Additional neovim docs
|
-- Additional neovim docs
|
||||||
"folke/neodev.nvim",
|
"folke/neodev.nvim",
|
||||||
opts = {},
|
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
|
-- Adds git related signs to the gutter, as well as utilities for managing changes
|
||||||
"lewis6991/gitsigns.nvim",
|
"lewis6991/gitsigns.nvim",
|
||||||
@ -62,30 +56,8 @@ require("lazy").setup({
|
|||||||
priority = 1000,
|
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
|
-- "gc" to comment visual regions/lines
|
||||||
{ "numToStr/Comment.nvim", opts = {}, event = "VeryLazy" },
|
{ "numToStr/Comment.nvim", opts = {}},
|
||||||
|
|
||||||
-- Fuzzy Finder (files, lsp, etc)
|
-- Fuzzy Finder (files, lsp, etc)
|
||||||
{
|
{
|
||||||
@ -119,23 +91,14 @@ require("lazy").setup({
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
"NvChad/nvim-colorizer.lua",
|
|
||||||
|
|
||||||
{
|
{
|
||||||
"stevearc/dressing.nvim",
|
"stevearc/dressing.nvim",
|
||||||
event = "VeryLazy",
|
|
||||||
opts = {
|
opts = {
|
||||||
input = { default_prompt = "➤ " },
|
input = { default_prompt = "➤ " },
|
||||||
select = { backend = { "telescope", "builtin" } },
|
select = { backend = { "telescope", "builtin" } },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
-- nice tmux integration
|
|
||||||
"christoomey/vim-tmux-navigator",
|
|
||||||
|
|
||||||
-- smart autopairs
|
|
||||||
"windwp/nvim-autopairs",
|
|
||||||
|
|
||||||
{
|
{
|
||||||
-- nicer notification's
|
-- nicer notification's
|
||||||
"rcarriga/nvim-notify",
|
"rcarriga/nvim-notify",
|
||||||
@ -144,9 +107,6 @@ require("lazy").setup({
|
|||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
|
||||||
-- markdown editing super powered
|
|
||||||
"jakewvincent/mkdnflow.nvim",
|
|
||||||
|
|
||||||
-- additional formater support
|
-- additional formater support
|
||||||
"stevearc/conform.nvim",
|
"stevearc/conform.nvim",
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user