add more plugins, change some keybinds
This commit is contained in:
4
lua/crentist/lazy/dressing.lua
Normal file
4
lua/crentist/lazy/dressing.lua
Normal file
@@ -0,0 +1,4 @@
|
||||
return {
|
||||
'stevearc/dressing.nvim',
|
||||
opts = {},
|
||||
}
|
||||
12
lua/crentist/lazy/iconpicker.lua
Normal file
12
lua/crentist/lazy/iconpicker.lua
Normal file
@@ -0,0 +1,12 @@
|
||||
return {
|
||||
"ziontee113/icon-picker.nvim",
|
||||
config = function()
|
||||
require("icon-picker").setup({ disable_legacy_commands = true })
|
||||
|
||||
local opts = { noremap = true, silent = true }
|
||||
|
||||
vim.keymap.set("n", "<Leader><Leader>i", "<cmd>IconPickerNormal<cr>", opts)
|
||||
vim.keymap.set("n", "<Leader><Leader>y", "<cmd>IconPickerYank<cr>", opts) --> Yank the selected icon into register
|
||||
vim.keymap.set("i", "<C-i>", "<cmd>IconPickerInsert<cr>", opts)
|
||||
end
|
||||
}
|
||||
@@ -3,22 +3,26 @@ return {
|
||||
dependencies = {
|
||||
"williamboman/mason.nvim",
|
||||
"williamboman/mason-lspconfig.nvim",
|
||||
"hrsh7th/nvim-cmp",
|
||||
"hrsh7th/cmp-nvim-lsp",
|
||||
"hrsh7th/cmp-buffer",
|
||||
"hrsh7th/cmp-path",
|
||||
"SergioRibera/cmp-dotenv",
|
||||
"hrsh7th/cmp-cmdline",
|
||||
"hrsh7th/nvim-cmp",
|
||||
"L3MON4D3/LuaSnip",
|
||||
"saadparwaiz1/cmp_luasnip",
|
||||
"L3MON4D3/LuaSnip",
|
||||
"j-hui/fidget.nvim",
|
||||
},
|
||||
|
||||
config = function()
|
||||
local cmp = require('cmp')
|
||||
local luasnip = require("luasnip")
|
||||
local augroup = vim.api.nvim_create_augroup
|
||||
local LspGroup = augroup('Lsp', {})
|
||||
local autocmd = vim.api.nvim_create_autocmd
|
||||
|
||||
require("fidget").setup({})
|
||||
local cmp = require('cmp')
|
||||
local luasnip = require('luasnip')
|
||||
|
||||
require('fidget').setup({})
|
||||
require('mason').setup({})
|
||||
require('mason-lspconfig').setup({
|
||||
-- Replace the language servers listed here
|
||||
@@ -88,5 +92,19 @@ return {
|
||||
},
|
||||
|
||||
})
|
||||
|
||||
local pythonLineLength = 95
|
||||
require('lspconfig').pylsp.setup {
|
||||
settings = {
|
||||
pylsp = {
|
||||
plugins = {
|
||||
pycodestyle = {
|
||||
maxLineLength = pythonLineLength
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
end
|
||||
}
|
||||
|
||||
9
lua/crentist/lazy/oil.lua
Normal file
9
lua/crentist/lazy/oil.lua
Normal file
@@ -0,0 +1,9 @@
|
||||
return {
|
||||
'stevearc/oil.nvim',
|
||||
-- Optional dependencies
|
||||
dependencies = { "nvim-tree/nvim-web-devicons" },
|
||||
opts = {},
|
||||
config = function ()
|
||||
require("oil").setup()
|
||||
end
|
||||
}
|
||||
@@ -8,7 +8,25 @@ return {
|
||||
version = "0.1.6",
|
||||
|
||||
config = function()
|
||||
require('telescope').setup({})
|
||||
local telescope = require('telescope')
|
||||
local telescopeConfig = require('telescope.config')
|
||||
|
||||
local vimgrep_arguments = { unpack(telescopeConfig.values.vimgrep_arguments) }
|
||||
table.insert(vimgrep_arguments, "--hidden")
|
||||
table.insert(vimgrep_arguments, "--glob")
|
||||
table.insert(vimgrep_arguments, "!**/.git/*")
|
||||
|
||||
telescope.setup({
|
||||
defaults = {
|
||||
vimgrep_arguments = vimgrep_arguments,
|
||||
},
|
||||
pickers = {
|
||||
find_files = {
|
||||
find_command = { "rg", "--files", "--hidden", "--glob", "!**/.git/*" },
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
local search = require('search')
|
||||
local builtin = require('telescope.builtin')
|
||||
|
||||
@@ -17,6 +35,11 @@ return {
|
||||
next = '<Tab>',
|
||||
prev = '<S-Tab>'
|
||||
},
|
||||
tabs = {
|
||||
{ name = 'Files', tele_func = builtin.find_files, tele_opts = { no_ignore = true, hidden = true } },
|
||||
{ name = 'Grep', tele_func = builtin.live_grep },
|
||||
{ name = 'Buffers', tele_func = builtin.buffers },
|
||||
},
|
||||
append_tabs = { -- append_tabs will add the provided tabs to the default ones
|
||||
{
|
||||
'Commits', -- or name = "Commits"
|
||||
@@ -29,6 +52,9 @@ return {
|
||||
})
|
||||
|
||||
vim.keymap.set('n', '<leader>pf', search.open, {})
|
||||
vim.keymap.set('n', '<leader>pb', function()
|
||||
search.open({ tab_name = 'Buffers' })
|
||||
end)
|
||||
vim.keymap.set('n', '<leader>pws', function()
|
||||
local word = vim.fn.expand("<cword>")
|
||||
builtin.grep_string({ search = word })
|
||||
|
||||
37
lua/crentist/lazy/trouble.lua
Normal file
37
lua/crentist/lazy/trouble.lua
Normal file
@@ -0,0 +1,37 @@
|
||||
return {
|
||||
"folke/trouble.nvim",
|
||||
opts = {}, -- for default options, refer to the configuration section for custom setup.
|
||||
cmd = "Trouble",
|
||||
keys = {
|
||||
{
|
||||
"<leader>tt",
|
||||
"<cmd>Trouble diagnostics toggle<cr>",
|
||||
desc = "Diagnostics (Trouble)",
|
||||
},
|
||||
{
|
||||
"<leader>tT",
|
||||
"<cmd>Trouble diagnostics toggle filter.buf=0<cr>",
|
||||
desc = "Buffer Diagnostics (Trouble)",
|
||||
},
|
||||
{
|
||||
"<leader>ts",
|
||||
"<cmd>Trouble symbols toggle focus=false<cr>",
|
||||
desc = "Symbols (Trouble)",
|
||||
},
|
||||
{
|
||||
"<leader>tl",
|
||||
"<cmd>Trouble lsp toggle focus=false win.position=right<cr>",
|
||||
desc = "LSP Definitions / references / ... (Trouble)",
|
||||
},
|
||||
{
|
||||
"<leader>tL",
|
||||
"<cmd>Trouble loclist toggle<cr>",
|
||||
desc = "Location List (Trouble)",
|
||||
},
|
||||
{
|
||||
"<leader>tQ",
|
||||
"<cmd>Trouble qflist toggle<cr>",
|
||||
desc = "Quickfix List (Trouble)",
|
||||
},
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user