cleanup
This commit is contained in:
parent
860c21b165
commit
3141de1d5f
@ -1 +1,23 @@
|
|||||||
require("autoclose").setup()
|
-- Close brackets
|
||||||
|
local config = {
|
||||||
|
keys = {
|
||||||
|
["("] = { escape = false, close = true, pair = "()", disabled_filetypes = {} },
|
||||||
|
["["] = { escape = false, close = true, pair = "[]", disabled_filetypes = {} },
|
||||||
|
["{"] = { escape = false, close = true, pair = "{}", disabled_filetypes = {} },
|
||||||
|
|
||||||
|
[">"] = { escape = true, close = false, pair = "<>", disabled_filetypes = {} },
|
||||||
|
[")"] = { escape = true, close = false, pair = "()", disabled_filetypes = {} },
|
||||||
|
["]"] = { escape = true, close = false, pair = "[]", disabled_filetypes = {} },
|
||||||
|
["}"] = { escape = true, close = false, pair = "{}", disabled_filetypes = {} },
|
||||||
|
|
||||||
|
['"'] = { escape = true, close = true, pair = '""', disabled_filetypes = {} },
|
||||||
|
["'"] = { escape = true, close = true, pair = "''", disabled_filetypes = {} },
|
||||||
|
["`"] = { escape = true, close = true, pair = "``", disabled_filetypes = {} },
|
||||||
|
},
|
||||||
|
options = {
|
||||||
|
disabled_filetypes = { "text", "markdown" },
|
||||||
|
disable_when_touch = false,
|
||||||
|
pair_spaces = false,
|
||||||
|
auto_indent = true,
|
||||||
|
},
|
||||||
|
}
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
-- pretty location at the top
|
||||||
require("barbecue").setup({
|
require("barbecue").setup({
|
||||||
---Whether to attach navic to language servers automatically.
|
---Whether to attach navic to language servers automatically.
|
||||||
---
|
---
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
-- fast switching between files
|
||||||
local mark = require("harpoon.mark")
|
local mark = require("harpoon.mark")
|
||||||
local ui = require("harpoon.ui")
|
local ui = require("harpoon.ui")
|
||||||
|
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
-- language server manager (via Mason)
|
||||||
local lsp = require('lsp-zero').preset({})
|
local lsp = require('lsp-zero').preset({})
|
||||||
|
|
||||||
lsp.on_attach(function(client, bufnr)
|
lsp.on_attach(function(client, bufnr)
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
-- finding files in working dir and repo
|
||||||
local builtin = require('telescope.builtin')
|
local builtin = require('telescope.builtin')
|
||||||
vim.keymap.set('n', '<leader>ff', builtin.find_files, {})
|
vim.keymap.set('n', '<leader>ff', builtin.find_files, {})
|
||||||
vim.keymap.set('n', '<leader>pf', builtin.git_files, {})
|
vim.keymap.set('n', '<leader>pf', builtin.git_files, {})
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
-- parsing and highlighting
|
||||||
require'nvim-treesitter.configs'.setup {
|
require'nvim-treesitter.configs'.setup {
|
||||||
-- A list of parser names, or "all" (the five listed parsers should always be installed)
|
-- A list of parser names, or "all" (the five listed parsers should always be installed)
|
||||||
ensure_installed = { "python", "javascript", "typescript", "php", "c", "rust", "bash", "lua", "vim", "vimdoc", "query" },
|
ensure_installed = { "python", "javascript", "typescript", "php", "c", "rust", "bash", "lua", "vim", "vimdoc", "query" },
|
||||||
|
@ -1 +1,2 @@
|
|||||||
|
-- advanced undo history
|
||||||
vim.keymap.set("n", "<leader>u", vim.cmd.UndotreeToggle)
|
vim.keymap.set("n", "<leader>u", vim.cmd.UndotreeToggle)
|
||||||
|
@ -8,37 +8,44 @@ return require('packer').startup(function(use)
|
|||||||
use 'wbthomason/packer.nvim'
|
use 'wbthomason/packer.nvim'
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
-- treesitter
|
-- treesitter
|
||||||
use('nvim-treesitter/nvim-treesitter', {run = ':TSUpdate'})
|
use ('nvim-treesitter/nvim-treesitter', {run = ':TSUpdate'})
|
||||||
use('nvim-treesitter/playground')
|
use ('nvim-treesitter/playground')
|
||||||
use('nvim-treesitter/nvim-treesitter-context')
|
use ('nvim-treesitter/nvim-treesitter-context')
|
||||||
|
|
||||||
|
|
||||||
-- useful
|
-- useful
|
||||||
use {
|
use {
|
||||||
'nvim-telescope/telescope.nvim', tag = '0.1.1',
|
'nvim-telescope/telescope.nvim', tag = '0.1.1',
|
||||||
requires = { {'nvim-lua/plenary.nvim'} }
|
requires = { {'nvim-lua/plenary.nvim'} }
|
||||||
}
|
}
|
||||||
use('ThePrimeagen/harpoon')
|
|
||||||
use('mbbill/undotree')
|
use {
|
||||||
use('m4xshen/autoclose.nvim')
|
'ThePrimeagen/harpoon',
|
||||||
|
requires = 'nvim-lua/plenary.nvim'
|
||||||
|
}
|
||||||
|
|
||||||
use {
|
use {
|
||||||
'NeogitOrg/neogit',
|
'NeogitOrg/neogit',
|
||||||
requires = 'nvim-lua/plenary.nvim'
|
requires = 'nvim-lua/plenary.nvim'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
use ('mbbill/undotree')
|
||||||
|
|
||||||
|
use ('m4xshen/autoclose.nvim')
|
||||||
|
|
||||||
|
|
||||||
-- pretty
|
-- pretty
|
||||||
use({
|
use {
|
||||||
'catppuccin/nvim',
|
'catppuccin/nvim',
|
||||||
as = 'mocha',
|
as = 'mocha',
|
||||||
config = function()
|
config = function()
|
||||||
vim.cmd('colorscheme catppuccin-mocha')
|
vim.cmd('colorscheme catppuccin-mocha')
|
||||||
end
|
end
|
||||||
})
|
}
|
||||||
|
|
||||||
use({
|
use {
|
||||||
"utilyre/barbecue.nvim",
|
"utilyre/barbecue.nvim", tag = "*",
|
||||||
tag = "*",
|
|
||||||
requires = {
|
requires = {
|
||||||
"SmiteshP/nvim-navic",
|
"SmiteshP/nvim-navic",
|
||||||
"nvim-tree/nvim-web-devicons", -- optional dependency
|
"nvim-tree/nvim-web-devicons", -- optional dependency
|
||||||
@ -47,10 +54,11 @@ return require('packer').startup(function(use)
|
|||||||
config = function()
|
config = function()
|
||||||
require("barbecue").setup()
|
require("barbecue").setup()
|
||||||
end,
|
end,
|
||||||
})
|
}
|
||||||
|
|
||||||
|
|
||||||
-- lsp
|
-- lsp
|
||||||
use ({
|
use {
|
||||||
'VonHeikemen/lsp-zero.nvim',
|
'VonHeikemen/lsp-zero.nvim',
|
||||||
branch = 'v2.x',
|
branch = 'v2.x',
|
||||||
requires = {
|
requires = {
|
||||||
@ -69,5 +77,5 @@ return require('packer').startup(function(use)
|
|||||||
{'hrsh7th/cmp-nvim-lsp'}, -- Required
|
{'hrsh7th/cmp-nvim-lsp'}, -- Required
|
||||||
{'L3MON4D3/LuaSnip'}, -- Required
|
{'L3MON4D3/LuaSnip'}, -- Required
|
||||||
}
|
}
|
||||||
})
|
}
|
||||||
end)
|
end)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user