COnfig
This commit is contained in:
parent
be36a60446
commit
7c6f8e5b70
15
init.lua
15
init.lua
|
@ -685,7 +685,8 @@ require('lazy').setup({
|
|||
-- Disable "format_on_save lsp_fallback" for languages that don't
|
||||
-- have a well standardized coding style. You can add additional
|
||||
-- languages here or re-enable it for the disabled ones.
|
||||
local disable_filetypes = { c = true, cpp = true }
|
||||
-- local disable_filetypes = { c = true, cpp = true }
|
||||
local disable_filetypes = {}
|
||||
local lsp_format_opt
|
||||
if disable_filetypes[vim.bo[bufnr].filetype] then
|
||||
lsp_format_opt = 'never'
|
||||
|
@ -917,12 +918,12 @@ require('lazy').setup({
|
|||
-- Here are some example plugins that I've included in the Kickstart repository.
|
||||
-- Uncomment any of the lines below to enable them (you will need to restart nvim).
|
||||
--
|
||||
-- require 'kickstart.plugins.debug',
|
||||
-- require 'kickstart.plugins.indent_line',
|
||||
-- require 'kickstart.plugins.lint',
|
||||
-- require 'kickstart.plugins.autopairs',
|
||||
-- require 'kickstart.plugins.neo-tree',
|
||||
-- require 'kickstart.plugins.gitsigns', -- adds gitsigns recommend keymaps
|
||||
require 'kickstart.plugins.debug',
|
||||
require 'kickstart.plugins.indent_line',
|
||||
require 'kickstart.plugins.lint',
|
||||
require 'kickstart.plugins.autopairs',
|
||||
require 'kickstart.plugins.neo-tree',
|
||||
require 'kickstart.plugins.gitsigns', -- adds gitsigns recommend keymaps
|
||||
|
||||
-- NOTE: The import below can automatically add your own plugins, configuration, etc from `lua/custom/plugins/*.lua`
|
||||
-- This is the easiest way to modularize your config.
|
||||
|
|
|
@ -0,0 +1,12 @@
|
|||
return {
|
||||
'akinsho/bufferline.nvim',
|
||||
lazy = false,
|
||||
config = function()
|
||||
vim.opt.termguicolors = true
|
||||
require('bufferline').setup {
|
||||
options = {
|
||||
numbers = 'buffer_id',
|
||||
},
|
||||
}
|
||||
end,
|
||||
}
|
|
@ -1,6 +1,6 @@
|
|||
return {
|
||||
"m4xshen/hardtime.nvim",
|
||||
lazy = false,
|
||||
dependencies = {"MunifTanjim/nui.nvim", "nvim-lua/plenary.nvim"},
|
||||
opts = {}
|
||||
-- "m4xshen/hardtime.nvim",
|
||||
-- lazy = false,
|
||||
-- dependencies = {"MunifTanjim/nui.nvim", "nvim-lua/plenary.nvim"},
|
||||
-- opts = {}
|
||||
}
|
||||
|
|
|
@ -22,11 +22,19 @@ vim.keymap.set('n', '<C-->', ':DecreaseFont<CR>', { noremap = true, silent = tru
|
|||
vim.keymap.set('n', '<C-=>', ':IncreaseFont<CR>', { noremap = true, silent = true })
|
||||
vim.keymap.set('n', '<C-+>', ':IncreaseFont<CR>', { noremap = true, silent = true })
|
||||
vim.keymap.set('n', '<C-0>', ':ResetFontSize<CR>', { noremap = true, silent = true })
|
||||
|
||||
vim.keymap.set('n', '<leader>bb', function()
|
||||
local user_input = vim.fn.input 'Enter input: '
|
||||
local row, col = unpack(vim.api.nvim_win_get_cursor(0))
|
||||
vim.cmd { cmd = 'b', args = { user_input } }
|
||||
end)
|
||||
vim.keymap.set('n', '<C-s>', '<cmd>w!<cr>', { desc = 'Force write' })
|
||||
vim.keymap.set('n', '<C-q>', '<cmd>qa!<cr>', { desc = 'Force quit' })
|
||||
vim.keymap.set('n', '|', '<cmd>vsplit<cr>', { desc = 'Vertical Split' })
|
||||
vim.keymap.set('n', '\\', '<cmd>split<cr>', { desc = 'Horizontal Split' })
|
||||
vim.keymap.set('n', '<leader>h', '<cmd>nohl<cr>', { desc = 'Horizontal Split' })
|
||||
vim.keymap.set('n', '<leader>h', '<cmd>nohl<cr>', { desc = 'Horizontal Split' })
|
||||
vim.keymap.set('n', '<leader>la', vim.lsp.buf.code_action, { desc = 'Code action' })
|
||||
|
||||
vim.keymap.set('t', '<C-h>', '<cmd>wincmd h<cr>', { desc = 'Terminal left window navigation' })
|
||||
vim.keymap.set('t', '<C-j>', '<cmd>wincmd j<cr>', { desc = 'Terminal down window navigation' })
|
||||
vim.keymap.set('t', '<C-k>', '<cmd>wincmd k<cr>', { desc = 'Terminal up window navigation' })
|
||||
|
|
|
@ -11,7 +11,7 @@ return {
|
|||
},
|
||||
cmd = 'Neotree',
|
||||
keys = {
|
||||
{ '\\', ':Neotree reveal<CR>', desc = 'NeoTree reveal', silent = true },
|
||||
{ '<leader>e', ':Neotree toggle<CR>', desc = 'NeoTree reveal', silent = true },
|
||||
},
|
||||
opts = {
|
||||
filesystem = {
|
||||
|
|
Loading…
Reference in New Issue