Add nvterm among other things
This commit is contained in:
parent
1645f2fbe9
commit
de52bc6ece
7 changed files with 114 additions and 31 deletions
|
|
@ -1,7 +0,0 @@
|
|||
return {
|
||||
{
|
||||
'catppuccin/nvim',
|
||||
name = 'catppuccin',
|
||||
priority = 1000,
|
||||
},
|
||||
}
|
||||
14
lua/custom/plugins/colorscheme.lua
Normal file
14
lua/custom/plugins/colorscheme.lua
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
return {
|
||||
{
|
||||
'catppuccin/nvim',
|
||||
name = 'catppuccin',
|
||||
lazy = false,
|
||||
priority = 1000,
|
||||
opts = {
|
||||
flavour = 'mocha',
|
||||
},
|
||||
config = function()
|
||||
vim.cmd.colorscheme 'catppuccin'
|
||||
end,
|
||||
},
|
||||
}
|
||||
4
lua/custom/plugins/copilot.lua
Normal file
4
lua/custom/plugins/copilot.lua
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
return {
|
||||
'github/copilot.vim',
|
||||
enabled = false,
|
||||
}
|
||||
24
lua/custom/plugins/lualine.lua
Normal file
24
lua/custom/plugins/lualine.lua
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
return {
|
||||
{
|
||||
'nvim-lualine/lualine.nvim',
|
||||
dependencies = {
|
||||
'nvim-tree/nvim-web-devicons',
|
||||
},
|
||||
config = function()
|
||||
require('lualine').setup {
|
||||
options = {
|
||||
theme = 'dracula',
|
||||
section_separators = '',
|
||||
component_separators = '',
|
||||
},
|
||||
sections = {
|
||||
lualine_a = {
|
||||
'mode',
|
||||
'buffers',
|
||||
},
|
||||
lualine_c = {},
|
||||
},
|
||||
}
|
||||
end,
|
||||
},
|
||||
}
|
||||
|
|
@ -1,6 +1,7 @@
|
|||
return {
|
||||
{
|
||||
'NeogitOrg/neogit',
|
||||
version = 'v0.0.1', -- Version required for nvim 0.9.5
|
||||
dependencies = {
|
||||
'nvim-lua/plenary.nvim',
|
||||
'sindrets/diffview.nvim',
|
||||
|
|
|
|||
47
lua/custom/plugins/nvterm.lua
Normal file
47
lua/custom/plugins/nvterm.lua
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
return {
|
||||
{
|
||||
'NvChad/nvterm',
|
||||
config = function()
|
||||
require('nvterm').setup()
|
||||
local ft_cmds = {
|
||||
python = 'python3' .. vim.fn.expand '%',
|
||||
}
|
||||
local terminal = require 'nvterm.terminal'
|
||||
local toggle_modes = { 'n', 't' }
|
||||
local mappings = {
|
||||
{
|
||||
'n',
|
||||
'<C-l>',
|
||||
function()
|
||||
terminal.send(ft_cmds[vim.bo.filetype])
|
||||
end,
|
||||
},
|
||||
{
|
||||
toggle_modes,
|
||||
'<A-h>',
|
||||
function()
|
||||
terminal.toggle 'horizontal'
|
||||
end,
|
||||
},
|
||||
{
|
||||
toggle_modes,
|
||||
'<A-v>',
|
||||
function()
|
||||
terminal.toggle 'vertical'
|
||||
end,
|
||||
},
|
||||
{
|
||||
toggle_modes,
|
||||
'<A-i>',
|
||||
function()
|
||||
terminal.toggle 'float'
|
||||
end,
|
||||
},
|
||||
}
|
||||
local opts = { noremap = true, silent = true }
|
||||
for _, mapping in ipairs(mappings) do
|
||||
vim.keymap.set(mapping[1], mapping[2], mapping[3], opts)
|
||||
end
|
||||
end,
|
||||
},
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue