Add some mor plugins
Namingly lualine, cloak, and overseer
This commit is contained in:
parent
f513b0c18a
commit
80befc33f8
@ -19,6 +19,10 @@ local cmp_mapping = lsp.defaults.cmp_mappings({
|
|||||||
|
|
||||||
lsp.setup_nvim_cmp({ mapping = cmp_mapping })
|
lsp.setup_nvim_cmp({ mapping = cmp_mapping })
|
||||||
|
|
||||||
|
vim.diagnostic.config({
|
||||||
|
virtual_text = false,
|
||||||
|
})
|
||||||
|
|
||||||
-- Gimme pretty icons
|
-- Gimme pretty icons
|
||||||
lsp.set_sign_icons({
|
lsp.set_sign_icons({
|
||||||
error = '✘',
|
error = '✘',
|
||||||
@ -49,4 +53,8 @@ lsp.format_on_save({
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
lsp.setup()
|
lsp.setup()
|
||||||
|
|
||||||
|
require("lsp-inlayhints").setup()
|
||||||
|
1
after/plugin/tasks.lua
Normal file
1
after/plugin/tasks.lua
Normal file
@ -0,0 +1 @@
|
|||||||
|
local overseer = require("overseer")
|
@ -1,4 +1,5 @@
|
|||||||
vim.opt.number = true
|
vim.opt.number = true
|
||||||
|
vim.opt.relativenumber = true
|
||||||
vim.opt.expandtab = true
|
vim.opt.expandtab = true
|
||||||
vim.opt.shiftwidth = 4
|
vim.opt.shiftwidth = 4
|
||||||
vim.opt.smartindent = true
|
vim.opt.smartindent = true
|
||||||
@ -9,7 +10,7 @@ vim.opt.scrolloff = 8
|
|||||||
vim.opt.signcolumn = "yes"
|
vim.opt.signcolumn = "yes"
|
||||||
vim.opt.colorcolumn = "100"
|
vim.opt.colorcolumn = "100"
|
||||||
|
|
||||||
vim.g.mapleader = ","
|
vim.g.mapleader = " "
|
||||||
|
|
||||||
vim.keymap.set("n", "<Leader><CR>", "<cmd>noh<CR>")
|
vim.keymap.set("n", "<Leader><CR>", "<cmd>noh<CR>")
|
||||||
vim.keymap.set("n", "U", "<cmd>redo<CR>")
|
vim.keymap.set("n", "U", "<cmd>redo<CR>")
|
||||||
|
@ -76,6 +76,9 @@ local function spec(use)
|
|||||||
|
|
||||||
use "mhartington/formatter.nvim"
|
use "mhartington/formatter.nvim"
|
||||||
|
|
||||||
|
-- Doesn't seem to work properly atm
|
||||||
|
use "lvimuser/lsp-inlayhints.nvim"
|
||||||
|
|
||||||
|
|
||||||
---- Just Visual Stuff
|
---- Just Visual Stuff
|
||||||
|
|
||||||
@ -96,6 +99,60 @@ local function spec(use)
|
|||||||
end
|
end
|
||||||
}
|
}
|
||||||
|
|
||||||
|
use {
|
||||||
|
"nvim-lualine/lualine.nvim",
|
||||||
|
requires = {
|
||||||
|
{ "nvim-tree/nvim-web-devicons" }
|
||||||
|
},
|
||||||
|
config = function()
|
||||||
|
local overseer = require("overseer")
|
||||||
|
local task_status = {
|
||||||
|
"overseer",
|
||||||
|
colored = true,
|
||||||
|
symbols = {
|
||||||
|
[overseer.STATUS.FAILURE] = "✗ ",
|
||||||
|
[overseer.STATUS.CANCELED] = "o",
|
||||||
|
[overseer.STATUS.SUCCESS] = "✓ ",
|
||||||
|
[overseer.STATUS.RUNNING] = "⟳ ",
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
|
require("lualine").setup({
|
||||||
|
sections = {
|
||||||
|
lualine_x = {
|
||||||
|
task_status,
|
||||||
|
"encoding",
|
||||||
|
{ "fileformat", icons_enabled = false },
|
||||||
|
"filetype"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
})
|
||||||
|
end
|
||||||
|
}
|
||||||
|
|
||||||
|
use {
|
||||||
|
"lukas-reineke/indent-blankline.nvim",
|
||||||
|
config = function()
|
||||||
|
require("indent_blankline").setup {
|
||||||
|
space_char_blankline = " ",
|
||||||
|
show_current_context = true,
|
||||||
|
show_current_context_start = false,
|
||||||
|
}
|
||||||
|
end
|
||||||
|
}
|
||||||
|
|
||||||
|
use {
|
||||||
|
"laytan/cloak.nvim",
|
||||||
|
config = function()
|
||||||
|
require("cloak").setup({
|
||||||
|
cloak_length = 5,
|
||||||
|
patterns = {
|
||||||
|
{ file_pattern = "*.env*", cloak_pattern = "=.+" }
|
||||||
|
}
|
||||||
|
})
|
||||||
|
end
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
---- Shortcuts
|
---- Shortcuts
|
||||||
|
|
||||||
@ -160,6 +217,13 @@ local function spec(use)
|
|||||||
{ "nvim-tree/nvim-web-devicons" },
|
{ "nvim-tree/nvim-web-devicons" },
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
use {
|
||||||
|
"stevearc/overseer.nvim",
|
||||||
|
config = function()
|
||||||
|
require('overseer').setup()
|
||||||
|
end
|
||||||
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user