updates
This commit is contained in:
parent
2c6ea96981
commit
3d7ad2c0dd
2
init.lua
2
init.lua
@ -11,8 +11,8 @@ if not vim.loop.fs_stat(lazypath) then
|
||||
end
|
||||
vim.opt.rtp:prepend(lazypath)
|
||||
|
||||
require('mappings')
|
||||
require('options')
|
||||
require('lazy').setup('plugins')
|
||||
require('mappings')
|
||||
require('lsp_settings')
|
||||
require('autocmds')
|
||||
|
@ -1,8 +1,5 @@
|
||||
local vimp = require('vimp')
|
||||
|
||||
-- Map leader
|
||||
vim.g.mapleader = " "
|
||||
|
||||
-- tabs and stuff
|
||||
vimp.vnoremap("<C-b>", [[<C-a>]])
|
||||
vimp.noremap("<Tab>", [[>gv]])
|
||||
@ -30,3 +27,19 @@ vimp.nnoremap({ 'silent' }, '<leader>l', function()
|
||||
vim.b.lnstatus = "number"
|
||||
end
|
||||
end)
|
||||
|
||||
-- plugins
|
||||
vimp.noremap('<leader>md', [[:MarkdownProggle<CR>]])
|
||||
|
||||
vimp.nnoremap({ 'silent' }, '<A-Right>', [[:BufferNext<CR>]])
|
||||
vimp.nnoremap({ 'silent' }, '<A-Left>', [[:BufferPrevious<CR>]])
|
||||
|
||||
|
||||
vimp.nnoremap({ 'silent' }, '<leader>a', [[:ArgWrap<CR>]])
|
||||
|
||||
|
||||
vimp.noremap({ 'silent' }, '<leader>n', [[:NvimTreeToggle<CR>]])
|
||||
|
||||
vimp.noremap({ 'silent' }, '<leader>ff', [[:Telescope find_files<CR>]])
|
||||
vimp.noremap({ 'silent' }, '<leader>fg', [[:Telescope live_grep<CR>]])
|
||||
vimp.noremap({ 'silent' }, '<leader>fb', [[:Telescope buffers<CR>]])
|
||||
|
@ -1,3 +1,6 @@
|
||||
-- Map leader
|
||||
vim.g.mapleader = " "
|
||||
|
||||
-- colors
|
||||
vim.o.termguicolors = true
|
||||
|
||||
|
@ -1,4 +1,3 @@
|
||||
local vimp = require('vimp')
|
||||
return {
|
||||
|
||||
-- https://github.com/tpope/vim-obsession
|
||||
@ -17,7 +16,6 @@ return {
|
||||
vim.fn["mkdp#util#install"]()
|
||||
end,
|
||||
config = function()
|
||||
vimp.noremap('<leader>md', [[:MarkdownPreviewToggle<CR>]])
|
||||
vim.g.mkdp_filetypes = { "markdown" }
|
||||
vim.g.mkdp_markdown_css = os.getenv("XDG_CONFIG_HOME") .. '/nvim/static/custom.css'
|
||||
vim.g.mkdp_highlight_css = os.getenv("XDG_CACHE_HOME") .. '/wal/colors.css'
|
||||
@ -27,29 +25,6 @@ return {
|
||||
ft = { "markdown" }
|
||||
},
|
||||
|
||||
{
|
||||
'ThePrimeagen/harpoon',
|
||||
dependencies = {
|
||||
'nvim-lua/plenary.nvim'
|
||||
},
|
||||
config = function()
|
||||
require("harpoon").setup({
|
||||
-- sets the marks upon calling `toggle` on the ui, instead of require `:w`.
|
||||
save_on_toggle = false,
|
||||
-- saves the harpoon file upon every change. disabling is unrecommended.
|
||||
save_on_change = true,
|
||||
-- sets harpoon to run the command immediately as it's passed to the terminal when calling `sendCommand`.
|
||||
enter_on_sendcmd = false,
|
||||
-- closes any tmux windows harpoon that harpoon creates when you close Neovim.
|
||||
tmux_autoclose_windows = false,
|
||||
-- filetypes that you want to prevent from adding to the harpoon list menu.
|
||||
excluded_filetypes = { "harpoon" },
|
||||
-- set marks specific to each git branch inside git repository
|
||||
mark_branch = false,
|
||||
})
|
||||
end
|
||||
},
|
||||
|
||||
{
|
||||
'ray-x/web-tools.nvim',
|
||||
config = function()
|
||||
@ -154,18 +129,11 @@ return {
|
||||
lazy = true
|
||||
},
|
||||
},
|
||||
config = function()
|
||||
require("telescope").load_extension('harpoon')
|
||||
vimp.noremap({ 'silent' }, '<leader>ff', [[:Telescope find_files<CR>]])
|
||||
vimp.noremap({ 'silent' }, '<leader>fg', [[:Telescope live_grep<CR>]])
|
||||
vimp.noremap({ 'silent' }, '<leader>fb', [[:Telescope buffers<CR>]])
|
||||
end
|
||||
},
|
||||
|
||||
-- https://github.com/nvim-tree/nvim-tree.lua
|
||||
{
|
||||
'nvim-tree/nvim-tree.lua',
|
||||
vimp.noremap({ 'silent' }, '<leader>n', [[:NvimTreeToggle<CR>]]),
|
||||
dependencies = {
|
||||
'nvim-tree/nvim-web-devicons'
|
||||
},
|
||||
@ -214,9 +182,6 @@ return {
|
||||
-- https://github.com/FooSoft/vim-argwrap
|
||||
{
|
||||
'FooSoft/vim-argwrap',
|
||||
config = function()
|
||||
vimp.nnoremap({ 'silent' }, '<leader>a', [[:ArgWrap<CR>]])
|
||||
end
|
||||
},
|
||||
|
||||
-- https://github.com/kylechui/nvim-surround
|
||||
@ -378,8 +343,6 @@ return {
|
||||
'romgrk/barbar.nvim',
|
||||
dependencies = 'nvim-tree/nvim-web-devicons',
|
||||
config = function()
|
||||
vimp.nnoremap({ 'silent' }, '<A-Right>', [[:BufferNext<CR>]])
|
||||
vimp.nnoremap({ 'silent' }, '<A-Left>', [[:BufferPrevious<CR>]])
|
||||
require 'bufferline'.setup {
|
||||
animation = true,
|
||||
closable = true,
|
||||
|
Loading…
Reference in New Issue
Block a user