mirror of
https://github.com/pnx/dotfiles
synced 2026-06-16 03:14:55 +02:00
big nvim update. maybe broke something
This commit is contained in:
parent
1e68462bc1
commit
8a39a1b88a
32 changed files with 531 additions and 195 deletions
5
nvim/lua/plugins/editor/autopairs.lua
Normal file
5
nvim/lua/plugins/editor/autopairs.lua
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
return {
|
||||
'windwp/nvim-autopairs',
|
||||
event = "InsertEnter",
|
||||
opts = {} -- this is equalent to setup({}) function
|
||||
}
|
||||
17
nvim/lua/plugins/editor/indent.lua
Normal file
17
nvim/lua/plugins/editor/indent.lua
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
return{
|
||||
"lukas-reineke/indent-blankline.nvim",
|
||||
main = "ibl",
|
||||
opts = {
|
||||
scope = {
|
||||
enabled = true,
|
||||
show_start = false,
|
||||
show_end = false
|
||||
},
|
||||
exclude = {
|
||||
filetypes = {
|
||||
'help',
|
||||
'dashboard'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
9
nvim/lua/plugins/editor/mini-comment.lua
Normal file
9
nvim/lua/plugins/editor/mini-comment.lua
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
return {
|
||||
'echasnovski/mini.comment',
|
||||
version = '*',
|
||||
opts = {
|
||||
options = {
|
||||
custom_commentstring = function() return vim.bo.commentstring end
|
||||
}
|
||||
}
|
||||
}
|
||||
57
nvim/lua/plugins/editor/telescope.lua
Normal file
57
nvim/lua/plugins/editor/telescope.lua
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
local icons = require('config.icons')
|
||||
|
||||
return {
|
||||
'nvim-telescope/telescope.nvim',
|
||||
tag = '0.1.4',
|
||||
main = 'telescope',
|
||||
dependencies = {
|
||||
'nvim-lua/plenary.nvim',
|
||||
'nvim-tree/nvim-web-devicons',
|
||||
{
|
||||
"folke/which-key.nvim",
|
||||
-- optional = true,
|
||||
opts = {
|
||||
defaults = {
|
||||
["<leader>s"] = { name = "+search" },
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
keys = require('config.telescope'),
|
||||
opts = function()
|
||||
local actions = require("telescope.actions")
|
||||
return {
|
||||
defaults = {
|
||||
path_display = { truncate = 1 },
|
||||
-- borderchars = { "─", "│", "─", "│", "┌", "┐", "┘", "└" },
|
||||
border = {
|
||||
prompt = { 1, 1, 1, 1 },
|
||||
results = { 1, 1, 1, 1 },
|
||||
preview = { 1, 1, 1, 1 },
|
||||
},
|
||||
borderchars = {
|
||||
prompt = { "─", "│", "─", "│", "├", "┤", "┴", "└" },
|
||||
results = { "─", "│", " ", "│", "┌", "┬", "│", "│" },
|
||||
preview = { "─", "│", "─", " ", "─", "┐", "┘", "─" },
|
||||
},
|
||||
prompt_prefix = ' ' .. icons.prompt .. ' ',
|
||||
selection_caret = icons.current .. ' ',
|
||||
multi_icon = icons.selected .. ' ',
|
||||
file_ignore_patterns = {
|
||||
".git/",
|
||||
"node_modules/"
|
||||
},
|
||||
mappings = {
|
||||
i = {
|
||||
["<esc>"] = actions.close
|
||||
}
|
||||
}
|
||||
},
|
||||
pickers = {
|
||||
find_files = {
|
||||
hidden = true
|
||||
}
|
||||
}
|
||||
}
|
||||
end,
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue