mirror of
https://github.com/Baipyrus/nvim-config.git
synced 2024-12-26 13:21:45 +00:00
Compare commits
4 Commits
5137d4bbea
...
ab8ec4096c
Author | SHA1 | Date | |
---|---|---|---|
ab8ec4096c | |||
0d0d725de1 | |||
20852d016e | |||
9e2ec6838e |
13
lua/custom/plugins/lualine.lua
Normal file
13
lua/custom/plugins/lualine.lua
Normal file
@ -0,0 +1,13 @@
|
||||
return {
|
||||
-- Set lualine as statusline
|
||||
'nvim-lualine/lualine.nvim',
|
||||
-- See `:help lualine.txt`
|
||||
opts = {
|
||||
options = {
|
||||
icons_enabled = vim.g.have_nerd_font,
|
||||
theme = 'auto',
|
||||
component_separators = '|',
|
||||
section_separators = ' ',
|
||||
},
|
||||
},
|
||||
}
|
10
lua/custom/plugins/oil.lua
Normal file
10
lua/custom/plugins/oil.lua
Normal file
@ -0,0 +1,10 @@
|
||||
return {
|
||||
'stevearc/oil.nvim',
|
||||
opts = {},
|
||||
-- Optional dependencies
|
||||
dependencies = { 'nvim-tree/nvim-web-devicons' },
|
||||
config = function()
|
||||
require('oil').setup()
|
||||
vim.keymap.set('n', '<leader>fe', require('oil').open, { desc = '[F]ile [E]xplorer' })
|
||||
end,
|
||||
}
|
13
lua/custom/plugins/overseer.lua
Normal file
13
lua/custom/plugins/overseer.lua
Normal file
@ -0,0 +1,13 @@
|
||||
return {
|
||||
-- Simple task runner plugin
|
||||
'stevearc/overseer.nvim',
|
||||
opts = {},
|
||||
config = function(_, opts)
|
||||
require('overseer').setup(opts or {})
|
||||
|
||||
-- Display status info about tasks
|
||||
vim.keymap.set('n', '<leader>ol', '<cmd>OverseerToggle<cr>', { desc = '[O]verseer [L]og' })
|
||||
-- Run task by listing all in floating
|
||||
vim.keymap.set('n', '<leader>or', '<cmd>OverseerRun<cr>', { desc = '[O]verseer [R]un' })
|
||||
end,
|
||||
}
|
@ -1,16 +0,0 @@
|
||||
-- autopairs
|
||||
-- https://github.com/windwp/nvim-autopairs
|
||||
|
||||
return {
|
||||
'windwp/nvim-autopairs',
|
||||
event = 'InsertEnter',
|
||||
-- Optional dependency
|
||||
dependencies = { 'hrsh7th/nvim-cmp' },
|
||||
config = function()
|
||||
require('nvim-autopairs').setup {}
|
||||
-- If you want to automatically add `(` after selecting a function or method
|
||||
local cmp_autopairs = require 'nvim-autopairs.completion.cmp'
|
||||
local cmp = require 'cmp'
|
||||
cmp.event:on('confirm_done', cmp_autopairs.on_confirm_done())
|
||||
end,
|
||||
}
|
@ -17,26 +17,8 @@ return {
|
||||
-- - sr)' - [S]urround [R]eplace [)] [']
|
||||
require('mini.surround').setup()
|
||||
|
||||
-- Simple file explorer with in-buffer-editing
|
||||
require('mini.files').setup()
|
||||
vim.keymap.set({ 'n', 'v' }, '<leader>fe', function()
|
||||
MiniFiles.open()
|
||||
end, { desc = '[F]ile [E]xplorer' })
|
||||
|
||||
-- Simple and easy statusline.
|
||||
-- You could remove this setup call if you don't like it,
|
||||
-- and try some other statusline plugin
|
||||
local statusline = require 'mini.statusline'
|
||||
-- set use_icons to true if you have a Nerd Font
|
||||
statusline.setup { use_icons = vim.g.have_nerd_font }
|
||||
|
||||
-- You can configure sections in the statusline by overriding their
|
||||
-- default behavior. For example, here we set the section for
|
||||
-- cursor location to LINE:COLUMN
|
||||
---@diagnostic disable-next-line: duplicate-set-field
|
||||
statusline.section_location = function()
|
||||
return '%2l:%-2v'
|
||||
end
|
||||
-- Automatically add pairs of characters
|
||||
require('mini.pairs').setup()
|
||||
|
||||
-- ... and there is more!
|
||||
-- Check out: https://github.com/echasnovski/mini.nvim
|
||||
|
@ -69,7 +69,6 @@ require('lazy').setup({
|
||||
require 'kickstart.plugins.debug',
|
||||
require 'kickstart.plugins.indent_line',
|
||||
require 'kickstart.plugins.lint',
|
||||
require 'kickstart.plugins.autopairs',
|
||||
-- require 'kickstart.plugins.neo-tree',
|
||||
|
||||
-- NOTE: The import below can automatically add your own plugins, configuration, etc from `lua/custom/plugins/*.lua`
|
||||
|
Loading…
Reference in New Issue
Block a user