feat: some shit
This commit is contained in:
@@ -8,17 +8,23 @@ vim.api.nvim_create_autocmd({ 'TextYankPost' }, {
|
||||
end,
|
||||
})
|
||||
|
||||
local rememberFoldsGroup = vim.api.nvim_create_augroup('RememberFolds', { clear = true })
|
||||
--
|
||||
-- vim.api.nvim_create_autocmd({ 'BufWinLeave', 'BufLeave' }, {
|
||||
-- pattern = "*",
|
||||
-- group = rememberFoldsGroup,
|
||||
-- command = 'mkview'
|
||||
-- })
|
||||
--
|
||||
-- vim.api.nvim_create_autocmd('BufWinEnter', {
|
||||
-- pattern = "*",
|
||||
-- group = rememberFoldsGroup,
|
||||
-- command = 'silent! loadview'
|
||||
-- })
|
||||
|
||||
cmd [[
|
||||
augroup filetypedetect
|
||||
au BufNewFile,BufRead *.frag setl ft=glsl
|
||||
au BufNewFile,BufRead *.vert setl ft=glsl
|
||||
augroup END
|
||||
]]
|
||||
|
||||
cmd [[
|
||||
augroup SaveManualFolds
|
||||
autocmd!
|
||||
au BufWinLeave, BufLeave ?* silent! mkview
|
||||
au BufWinEnter ?* silent! loadview
|
||||
augroup END
|
||||
]]
|
||||
|
@@ -9,7 +9,7 @@ g.mapleader = " "
|
||||
map("n", "<C-o>", ":Telescope git_files<CR>", options)
|
||||
map("n", "<C-f>", ":lua require'telescope.builtin'.live_grep{ cwd = vim.fn.getcwd() }<CR>", options)
|
||||
map("n", "<C-p>", ":Telescope command_center<CR>", options)
|
||||
map("n", "<Shift>", "za", options)
|
||||
map("n", "<Leader-Leader>", "za", remap)
|
||||
|
||||
-- LSP Functionality
|
||||
map("n", "<Leader>n", ":lua vim.diagnostic.goto_next()<CR>", options)
|
||||
|
@@ -23,6 +23,11 @@ vim.cmd [[set complete+=kspell]] -- auto complete with spellcheck
|
||||
vim.cmd [[set completeopt=menuone,longest]] -- auto complete menu (It's pretty great)
|
||||
vim.cmd [[set nocompatible]] -- Disable compatibility to old-time vi
|
||||
set.mouse = 'a' -- Enable mouse support
|
||||
set.foldmethod = "expr"
|
||||
set.foldexpr = "nvim_treesitter#foldexpr()" -- use treesitter for folding
|
||||
vim.wo.foldcolumn = '1'
|
||||
vim.wo.foldlevel = 99 -- feel free to decrease the value
|
||||
vim.wo.foldenable = true
|
||||
|
||||
---------------
|
||||
-- Neovim UI --
|
||||
|
@@ -2,7 +2,8 @@ local fn = vim.fn
|
||||
local install_path = fn.stdpath('data') .. '/site/pack/packer/start/packer.nvim'
|
||||
local packer_bootstrap = false
|
||||
if fn.empty(fn.glob(install_path)) > 0 then
|
||||
packer_bootstrap = fn.system({ 'git', 'clone', '--depth', '1', 'https://github.com/wbthomason/packer.nvim', install_path })
|
||||
packer_bootstrap = fn.system({ 'git', 'clone', '--depth', '1', 'https://github.com/wbthomason/packer.nvim',
|
||||
install_path })
|
||||
vim.cmd 'packadd packer.nvim'
|
||||
end
|
||||
|
||||
@@ -79,7 +80,15 @@ return packer.startup(function(use)
|
||||
require('session-lens').setup({ path_display = { 'shorten' } })
|
||||
end
|
||||
}
|
||||
use { "rcarriga/vim-ultest", requires = { "vim-test/vim-test" }, run = ":UpdateRemotePlugins" }
|
||||
|
||||
use {
|
||||
"nvim-neotest/neotest",
|
||||
requires = {
|
||||
"nvim-lua/plenary.nvim",
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
"antoinemadec/FixCursorHold.nvim"
|
||||
}
|
||||
}
|
||||
|
||||
-- Database Feature
|
||||
use "tpope/vim-dadbod"
|
||||
|
Reference in New Issue
Block a user