1
0
Fork 0
This commit is contained in:
Luca Bilke 2022-10-29 16:53:13 +02:00
parent c6ff373707
commit fd6133f89e
5 changed files with 21 additions and 37 deletions

View file

@ -183,7 +183,7 @@ M.whichkey = {
},
lf = {
n = {
["e"] = { function() require('lf').start() end, "File Picker" },
["e"] = { function() require("lf").start() end, "File Picker" },
}
},
alpha = {
@ -200,12 +200,12 @@ M.whichkey = {
}
},
comment = {
n = {
["/"] = { "<Plug>(comment_toggle_linewise_current)", "Comment toggle current line" },
},
v = {
["/"] = { "<Plug>(comment_toggle_linewise_visual)", "Comment toggle linewise" },
},
n = {
["/"] = { "<Plug>(comment_toggle_linewise_current)", "Comment toggle current line" },
}
},
gitsigns = {
n = {

View file

@ -1,5 +1,4 @@
local M = {}
function M.autocmd(list)
vim.api.nvim_create_augroup('packer_user_config', {clear = true})
@ -100,20 +99,18 @@ function M.map(section)
end
local wk_ok, whichkey = pcall(require, 'which-key')
local wkopts = {
mode = "",
prefix = "<leader>",
buffer = nil,
silent = true,
noremap = true,
nowait = true,
}
if wk_ok then
local wkmaps = require('config.keymaplist').whichkey[section]
if wkmaps then
for mode, binds in pairs(wkmaps) do
wkopts.mode = mode
whichkey.register(binds, wkopts)
whichkey.register(binds, {
mode = mode,
prefix = "<leader>",
buffer = nil,
silent = true,
noremap = true,
nowait = true,
})
end
end
end

View file

@ -1,6 +1,9 @@
local status_ok, todocomments = pcall(require, 'todo-comments')
local status_ok, todo_comments = pcall(require, 'todo-comments')
if not status_ok then
return
end
todocomments.setup {}
todo_comments.setup({
highlight = {
comments_only = false
}
})

View file

@ -2,21 +2,12 @@ local status_ok, configs = pcall(require, 'nvim-treesitter.configs')
if not status_ok then
return
end
configs.setup({
ensure_installed = { "lua", "markdown", "markdown_inline", "bash", "python" }, -- put the language you want in this array
-- ensure_installed = "all", -- one of "all" or a list of languages
ignore_install = { "" }, -- List of parsers to ignore installing
sync_install = false, -- install languages synchronously (only applied to `ensure_installed`)
highlight = {
enable = true, -- false will disable the whole extension
disable = { "css" }, -- list of language that will be disabled
},
ensure_installed = { "lua", "bash", "c" },
auto_install = true,
autopairs = {
enable = true,
enable = false,
},
indent = { enable = true, disable = { "python", "css" } },
context_commentstring = {
enable = true,
enable_autocmd = false,

View file

@ -45,7 +45,6 @@ local plugins = {
end
},
{ "akinsho/bufferline.nvim",
setup = function()
require('funcs').on_file_open("bufferline.nvim")
require('funcs').map("bufferline")
@ -210,16 +209,12 @@ local plugins = {
end
},
{ "nvim-telescope/telescope.nvim",
cmd = "Telescope",
config = function()
require('plugins.config.telescope')
end,
setup = function()
require('funcs').map("telescope")
end,
},
{ "ahmedkhalf/project.nvim",
cmd = "Telescope",
after = "telescope.nvim",
config = function()
require('plugins.config.project')
@ -233,8 +228,6 @@ if not status_ok then
end
vim.cmd "packadd packer.nvim"
packer.init {
auto_clean = true,
compile_on_sync = true,
git = { clone_timeout = 6000 },
display = {
working_sym = icons.misc.Watch,