nvim: retab!
This commit is contained in:
parent
4f03e7a041
commit
c2cf5c3662
@ -1,5 +1,5 @@
|
|||||||
return {
|
return {
|
||||||
"catppuccin/nvim",
|
"catppuccin/nvim",
|
||||||
name = "catppuccin",
|
name = "catppuccin",
|
||||||
priority = 1000,
|
priority = 1000,
|
||||||
}
|
}
|
||||||
|
@ -40,14 +40,14 @@ return {
|
|||||||
}
|
}
|
||||||
end,
|
end,
|
||||||
--[[
|
--[[
|
||||||
keys = {
|
keys = {
|
||||||
{ "<C-b>", function() require('cmp').mapping.scroll_docs(-4) end },
|
{ "<C-b>", function() require('cmp').mapping.scroll_docs(-4) end },
|
||||||
{ "<C-f>", function() require('cmp').mapping.scroll_docs(4) end },
|
{ "<C-f>", function() require('cmp').mapping.scroll_docs(4) end },
|
||||||
{ "<C-Space>", function() require('cmp').mapping.complete() end },
|
{ "<C-Space>", function() require('cmp').mapping.complete() end },
|
||||||
{ "<C-e>", function() require('cmp').mapping.abort() end },
|
{ "<C-e>", function() require('cmp').mapping.abort() end },
|
||||||
{ "<CR>", function() require('cmp').mapping.confirm({ select = true }) end },
|
{ "<CR>", function() require('cmp').mapping.confirm({ select = true }) end },
|
||||||
},
|
},
|
||||||
]]
|
]]
|
||||||
--
|
--
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
@ -3,11 +3,11 @@ return {
|
|||||||
branch = "harpoon2",
|
branch = "harpoon2",
|
||||||
dependencies = { "nvim-lua/plenary.nvim" },
|
dependencies = { "nvim-lua/plenary.nvim" },
|
||||||
config = function()
|
config = function()
|
||||||
local harpoon = require("harpoon")
|
local harpoon = require("harpoon")
|
||||||
|
|
||||||
-- REQUIRED
|
-- REQUIRED
|
||||||
harpoon:setup()
|
harpoon:setup()
|
||||||
-- REQUIRED
|
-- REQUIRED
|
||||||
|
|
||||||
-- basic telescope configuration
|
-- basic telescope configuration
|
||||||
local conf = require("telescope.config").values
|
local conf = require("telescope.config").values
|
||||||
@ -27,17 +27,17 @@ return {
|
|||||||
}):find()
|
}):find()
|
||||||
end
|
end
|
||||||
|
|
||||||
vim.keymap.set("n", "<leader>a", function() harpoon:list():add() end)
|
vim.keymap.set("n", "<leader>a", function() harpoon:list():add() end)
|
||||||
-- vim.keymap.set("n", "<C-e>", function() harpoon.ui:toggle_quick_menu(harpoon:list()) end)
|
-- vim.keymap.set("n", "<C-e>", function() harpoon.ui:toggle_quick_menu(harpoon:list()) end)
|
||||||
vim.keymap.set("n", "<C-e>", function() toggle_telescope(harpoon:list()) end, { desc = "Open harpoon window" })
|
vim.keymap.set("n", "<C-e>", function() toggle_telescope(harpoon:list()) end, { desc = "Open harpoon window" })
|
||||||
|
|
||||||
vim.keymap.set("n", "<C-h>", function() harpoon:list():select(1) end)
|
vim.keymap.set("n", "<C-h>", function() harpoon:list():select(1) end)
|
||||||
vim.keymap.set("n", "<C-t>", function() harpoon:list():select(2) end)
|
vim.keymap.set("n", "<C-t>", function() harpoon:list():select(2) end)
|
||||||
vim.keymap.set("n", "<C-n>", function() harpoon:list():select(3) end)
|
vim.keymap.set("n", "<C-n>", function() harpoon:list():select(3) end)
|
||||||
vim.keymap.set("n", "<C-s>", function() harpoon:list():select(4) end)
|
vim.keymap.set("n", "<C-s>", function() harpoon:list():select(4) end)
|
||||||
|
|
||||||
-- Toggle previous & next buffers stored within Harpoon list
|
-- Toggle previous & next buffers stored within Harpoon list
|
||||||
vim.keymap.set("n", "<C-S-P>", function() harpoon:list():prev() end)
|
vim.keymap.set("n", "<C-S-P>", function() harpoon:list():prev() end)
|
||||||
vim.keymap.set("n", "<C-S-N>", function() harpoon:list():next() end)
|
vim.keymap.set("n", "<C-S-N>", function() harpoon:list():next() end)
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
|
@ -14,7 +14,7 @@ return {
|
|||||||
-- ruby = { "rubocop", "standardrb" },
|
-- ruby = { "rubocop", "standardrb" },
|
||||||
ruby = { "standardrb" },
|
ruby = { "standardrb" },
|
||||||
go = { "golangcilint" },
|
go = { "golangcilint" },
|
||||||
}
|
}
|
||||||
|
|
||||||
vim.api.nvim_create_autocmd({ "BufWritePost" }, {
|
vim.api.nvim_create_autocmd({ "BufWritePost" }, {
|
||||||
callback = function()
|
callback = function()
|
||||||
|
@ -1,65 +1,65 @@
|
|||||||
return {
|
return {
|
||||||
{
|
{
|
||||||
"williamboman/mason.nvim",
|
"williamboman/mason.nvim",
|
||||||
config = function()
|
config = function()
|
||||||
require("mason").setup()
|
require("mason").setup()
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"williamboman/mason-lspconfig.nvim",
|
"williamboman/mason-lspconfig.nvim",
|
||||||
dependencies = { "williamboman/mason.nvim" },
|
dependencies = { "williamboman/mason.nvim" },
|
||||||
config = function()
|
config = function()
|
||||||
require("mason-lspconfig").setup({
|
require("mason-lspconfig").setup({
|
||||||
ensure_installed = {
|
ensure_installed = {
|
||||||
"lua_ls",
|
"lua_ls",
|
||||||
"ruby_lsp",
|
"ruby_lsp",
|
||||||
-- "standardrb",
|
-- "standardrb",
|
||||||
"terraformls",
|
"terraformls",
|
||||||
"yamlls",
|
"yamlls",
|
||||||
"pyright",
|
"pyright",
|
||||||
"zls",
|
"zls",
|
||||||
"gopls",
|
"gopls",
|
||||||
"bashls",
|
"bashls",
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"neovim/nvim-lspconfig",
|
"neovim/nvim-lspconfig",
|
||||||
dependencies = { "williamboman/mason-lspconfig.nvim" },
|
dependencies = { "williamboman/mason-lspconfig.nvim" },
|
||||||
config = function()
|
config = function()
|
||||||
local lspconfig = require("lspconfig")
|
local lspconfig = require("lspconfig")
|
||||||
|
|
||||||
lspconfig.zls.setup({})
|
lspconfig.zls.setup({})
|
||||||
lspconfig.ruby_lsp.setup({
|
lspconfig.ruby_lsp.setup({
|
||||||
init_options = {
|
init_options = {
|
||||||
formatter = "standard",
|
formatter = "standard",
|
||||||
linters = { "standard" },
|
linters = { "standard" },
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
-- lspconfig.standardrb.setup({})
|
-- lspconfig.standardrb.setup({})
|
||||||
lspconfig.bashls.setup({})
|
lspconfig.bashls.setup({})
|
||||||
lspconfig.yamlls.setup({})
|
lspconfig.yamlls.setup({})
|
||||||
lspconfig.terraformls.setup({})
|
lspconfig.terraformls.setup({})
|
||||||
lspconfig.lua_ls.setup({
|
lspconfig.lua_ls.setup({
|
||||||
settings = {
|
settings = {
|
||||||
Lua = {
|
Lua = {
|
||||||
diagnostics = {
|
diagnostics = {
|
||||||
globals = { "vim" },
|
globals = { "vim" },
|
||||||
},
|
},
|
||||||
format = {
|
format = {
|
||||||
defaultConfig = {
|
defaultConfig = {
|
||||||
indent_style = "tabs",
|
indent_style = "tabs",
|
||||||
indent_size = "4",
|
indent_size = "4",
|
||||||
},
|
},
|
||||||
enable = true,
|
enable = true,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
lspconfig.pyright.setup({})
|
lspconfig.pyright.setup({})
|
||||||
lspconfig.gopls.setup({})
|
lspconfig.gopls.setup({})
|
||||||
lspconfig.zls.setup({})
|
lspconfig.zls.setup({})
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
return {
|
return {
|
||||||
"nvim-tree/nvim-tree.lua",
|
"nvim-tree/nvim-tree.lua",
|
||||||
config = function()
|
config = function()
|
||||||
require("nvim-tree").setup()
|
require("nvim-tree").setup()
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
|
@ -8,7 +8,7 @@ return {
|
|||||||
priority = 1000,
|
priority = 1000,
|
||||||
-- you can set set configuration options here
|
-- you can set set configuration options here
|
||||||
-- config = function()
|
-- config = function()
|
||||||
-- vim.g.zenbones_darken_comments = 45
|
-- vim.g.zenbones_darken_comments = 45
|
||||||
-- vim.cmd.colorscheme('zenbones')
|
-- vim.cmd.colorscheme('zenbones')
|
||||||
-- end
|
-- end
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user