This commit is contained in:
Lord Of Nougate 2023-07-12 22:31:54 +02:00
parent 860c21b165
commit 3141de1d5f
8 changed files with 52 additions and 16 deletions

View File

@ -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,
},
}

View File

@ -1,3 +1,4 @@
-- pretty location at the top
require("barbecue").setup({
---Whether to attach navic to language servers automatically.
---

View File

@ -1,3 +1,4 @@
-- fast switching between files
local mark = require("harpoon.mark")
local ui = require("harpoon.ui")

View File

@ -1,3 +1,4 @@
-- language server manager (via Mason)
local lsp = require('lsp-zero').preset({})
lsp.on_attach(function(client, bufnr)

View File

@ -1,3 +1,4 @@
-- finding files in working dir and repo
local builtin = require('telescope.builtin')
vim.keymap.set('n', '<leader>ff', builtin.find_files, {})
vim.keymap.set('n', '<leader>pf', builtin.git_files, {})

View File

@ -1,3 +1,4 @@
-- parsing and highlighting
require'nvim-treesitter.configs'.setup {
-- 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" },

View File

@ -1 +1,2 @@
-- advanced undo history
vim.keymap.set("n", "<leader>u", vim.cmd.UndotreeToggle)

View File

@ -8,37 +8,44 @@ return require('packer').startup(function(use)
use 'wbthomason/packer.nvim'
-- treesitter
use ('nvim-treesitter/nvim-treesitter', {run = ':TSUpdate'})
use ('nvim-treesitter/playground')
use ('nvim-treesitter/nvim-treesitter-context')
-- useful
use {
'nvim-telescope/telescope.nvim', tag = '0.1.1',
requires = { {'nvim-lua/plenary.nvim'} }
}
use('ThePrimeagen/harpoon')
use('mbbill/undotree')
use('m4xshen/autoclose.nvim')
use {
'ThePrimeagen/harpoon',
requires = 'nvim-lua/plenary.nvim'
}
use {
'NeogitOrg/neogit',
requires = 'nvim-lua/plenary.nvim'
}
use ('mbbill/undotree')
use ('m4xshen/autoclose.nvim')
-- pretty
use({
use {
'catppuccin/nvim',
as = 'mocha',
config = function()
vim.cmd('colorscheme catppuccin-mocha')
end
})
}
use({
"utilyre/barbecue.nvim",
tag = "*",
use {
"utilyre/barbecue.nvim", tag = "*",
requires = {
"SmiteshP/nvim-navic",
"nvim-tree/nvim-web-devicons", -- optional dependency
@ -47,10 +54,11 @@ return require('packer').startup(function(use)
config = function()
require("barbecue").setup()
end,
})
}
-- lsp
use ({
use {
'VonHeikemen/lsp-zero.nvim',
branch = 'v2.x',
requires = {
@ -69,5 +77,5 @@ return require('packer').startup(function(use)
{'hrsh7th/cmp-nvim-lsp'}, -- Required
{'L3MON4D3/LuaSnip'}, -- Required
}
})
}
end)