Major changes to nvim config
This commit is contained in:
parent
48c265049b
commit
6d2b03d2f8
4 changed files with 57 additions and 12 deletions
|
@ -1,3 +1,10 @@
|
||||||
|
-- TODO:
|
||||||
|
-- status line
|
||||||
|
-- goyo-like thing
|
||||||
|
-- coq
|
||||||
|
-- chadtree colors
|
||||||
|
-- map A-S to toggle spell check (see logic from hlsearch section in init.vim)
|
||||||
|
|
||||||
-- basic settings: ~/.config/nvim/lua/settings.lua
|
-- basic settings: ~/.config/nvim/lua/settings.lua
|
||||||
require('settings')
|
require('settings')
|
||||||
-- plugins and plugin settings: ~/.config/nvim/lua/plugins.lua
|
-- plugins and plugin settings: ~/.config/nvim/lua/plugins.lua
|
||||||
|
|
|
@ -1,5 +1,11 @@
|
||||||
local M = {}
|
local M = {}
|
||||||
|
|
||||||
|
-- chadtree
|
||||||
|
M.chadtree = function ()
|
||||||
|
vim.api.nvim_set_keymap('n', '<leader>v', '<cmd>CHADopen<cr>', { noremap = true, silent = true })
|
||||||
|
-- chadtree_settings.theme.text_colour_set = "trapdoor"
|
||||||
|
end
|
||||||
|
|
||||||
-- nvimtree
|
-- nvimtree
|
||||||
M.nvimtree = function ()
|
M.nvimtree = function ()
|
||||||
local tree_cb = require'nvim-tree.config'.nvim_tree_callback
|
local tree_cb = require'nvim-tree.config'.nvim_tree_callback
|
||||||
|
|
|
@ -51,6 +51,13 @@ return require('packer').startup(function()
|
||||||
require("lsp").lspconfig()
|
require("lsp").lspconfig()
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
|
use { -- compe
|
||||||
|
"hrsh7th/nvim-cmp",
|
||||||
|
requires = {
|
||||||
|
"hrsh7th/vim-vsnip",
|
||||||
|
"hrsh7th/cmp-buffer",
|
||||||
|
}
|
||||||
|
}
|
||||||
use { -- function parameter previews
|
use { -- function parameter previews
|
||||||
"ray-x/lsp_signature.nvim",
|
"ray-x/lsp_signature.nvim",
|
||||||
after = "nvim-lspconfig",
|
after = "nvim-lspconfig",
|
||||||
|
@ -64,12 +71,13 @@ return require('packer').startup(function()
|
||||||
-- require("other").packer_lazy_load "vim-matchup"
|
-- require("other").packer_lazy_load "vim-matchup"
|
||||||
-- end,
|
-- end,
|
||||||
}
|
}
|
||||||
use {
|
-- use { -- ALE: Support for lots of linters, etc
|
||||||
'dense-analysis/ale',
|
-- 'dense-analysis/ale',
|
||||||
config = function()
|
-- config = function()
|
||||||
vim.g.ale_disable_lsp = 1
|
-- vim.g.ale_disable_lsp = 1
|
||||||
end
|
-- end
|
||||||
}
|
-- }
|
||||||
|
|
||||||
|
|
||||||
---- Other IDE features
|
---- Other IDE features
|
||||||
use { -- git integration
|
use { -- git integration
|
||||||
|
@ -81,12 +89,23 @@ return require('packer').startup(function()
|
||||||
-- require('other').gitsigns()
|
-- require('other').gitsigns()
|
||||||
-- end
|
-- end
|
||||||
}
|
}
|
||||||
use { -- file manager
|
-- use { -- file manager
|
||||||
'kyazdani42/nvim-tree.lua',
|
-- 'kyazdani42/nvim-tree.lua',
|
||||||
requires = 'kyazdani42/nvim-web-devicons',
|
-- requires = 'kyazdani42/nvim-web-devicons',
|
||||||
|
-- config = function()
|
||||||
|
-- require('other').nvimtree()
|
||||||
|
-- end
|
||||||
|
-- }
|
||||||
|
use { -- new file manager
|
||||||
|
'ms-jpq/chadtree',
|
||||||
|
branch = 'chad',
|
||||||
|
run = 'python3 -m chadtree deps',
|
||||||
config = function()
|
config = function()
|
||||||
require('other').nvimtree()
|
require('other').chadtree()
|
||||||
end
|
end
|
||||||
|
-- config = funciton ()
|
||||||
|
-- vim.cmd 'nnoremap <leader>v <cmd>CHADopen<cr>'
|
||||||
|
-- end
|
||||||
}
|
}
|
||||||
use { -- terminal
|
use { -- terminal
|
||||||
"akinsho/toggleterm.nvim",
|
"akinsho/toggleterm.nvim",
|
||||||
|
@ -94,6 +113,17 @@ return require('packer').startup(function()
|
||||||
require('other').toggleterm()
|
require('other').toggleterm()
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
|
use { -- Smooth Scrolling
|
||||||
|
"karb94/neoscroll.nvim",
|
||||||
|
-- disable = not plugin_status.neoscroll,
|
||||||
|
-- opt = true,
|
||||||
|
-- config = function()
|
||||||
|
-- require("plugins.configs.others").neoscroll()
|
||||||
|
-- end,
|
||||||
|
-- setup = function()
|
||||||
|
-- require("core.utils").packer_lazy_load "neoscroll.nvim"
|
||||||
|
-- end,
|
||||||
|
}
|
||||||
|
|
||||||
-- Conveniences
|
-- Conveniences
|
||||||
use { -- Undo tree
|
use { -- Undo tree
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
vim.g.mapleader = " "
|
||||||
|
|
||||||
vim.cmd [[
|
vim.cmd [[
|
||||||
set suffixes+=.aux,.bbl,.blg,.brf,.cb,.dvi,.idx,.ilg,.ind,.inx,.jpg,.log,.out,.png,.toc
|
set suffixes+=.aux,.bbl,.blg,.brf,.cb,.dvi,.idx,.ilg,.ind,.inx,.jpg,.log,.out,.png,.toc
|
||||||
set suffixes-=.h
|
set suffixes-=.h
|
||||||
|
|
Loading…
Add table
Reference in a new issue