Compare commits
2 commits
a41a2376fb
...
3ec1f5c3e3
| Author | SHA1 | Date | |
|---|---|---|---|
| 3ec1f5c3e3 | |||
| 4d54730b0f |
3 changed files with 45 additions and 36 deletions
5
lsp/proselint.lua
Normal file
5
lsp/proselint.lua
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
---@type vim.lsp.Config
|
||||
return {
|
||||
cmd = { "proselint" },
|
||||
filetypes = { "markdown", "text", "gitcommit", "plaintext" },
|
||||
}
|
||||
|
|
@ -1,40 +1,40 @@
|
|||
-- Buffer navigation
|
||||
-- https://github.com/leath-dub/snipe.nvim
|
||||
return {
|
||||
"leath-dub/snipe.nvim",
|
||||
opts = {},
|
||||
keys = {
|
||||
{
|
||||
"<leader><leader>",
|
||||
function()
|
||||
require("snipe").open_buffer_menu()
|
||||
end,
|
||||
desc = "Open Snipe buffer menu",
|
||||
},
|
||||
},
|
||||
config = function()
|
||||
local snipe = require("snipe")
|
||||
snipe.setup({
|
||||
hints = {
|
||||
-- Charaters to use for hints
|
||||
-- make sure they don't collide with the navigation keymaps
|
||||
dictionary = "saflewcmpghio",
|
||||
},
|
||||
ui = {
|
||||
position = "topright",
|
||||
-- position = "cursor",
|
||||
open_win_override = {
|
||||
-- title = "i can haz file?",
|
||||
border = "rounded",
|
||||
},
|
||||
preselect_current = true,
|
||||
},
|
||||
navigate = {
|
||||
cancel_snipe = "q",
|
||||
close_buffer = "d",
|
||||
open_vsplit = "V",
|
||||
open_split = "X",
|
||||
},
|
||||
})
|
||||
end,
|
||||
"leath-dub/snipe.nvim",
|
||||
opts = {},
|
||||
keys = {
|
||||
{
|
||||
"<leader><leader>",
|
||||
function()
|
||||
require("snipe").open_buffer_menu()
|
||||
end,
|
||||
desc = "Open Snipe buffer menu",
|
||||
},
|
||||
},
|
||||
config = function()
|
||||
local snipe = require("snipe")
|
||||
snipe.setup({
|
||||
hints = {
|
||||
-- Charaters to use for hints
|
||||
-- make sure they don't collide with the navigation keymaps
|
||||
dictionary = "saflewcmpghio",
|
||||
},
|
||||
ui = {
|
||||
position = "topright",
|
||||
-- position = "cursor",
|
||||
open_win_override = {
|
||||
-- title = "i can haz file?",
|
||||
border = "rounded",
|
||||
},
|
||||
preselect_current = true,
|
||||
},
|
||||
navigate = {
|
||||
cancel_snipe = "q",
|
||||
close_buffer = "D",
|
||||
open_vsplit = "V",
|
||||
open_split = "X",
|
||||
},
|
||||
})
|
||||
end,
|
||||
}
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@ vim.lsp.enable({
|
|||
"tailwind",
|
||||
"docker-compose",
|
||||
"bicep",
|
||||
"proselint",
|
||||
})
|
||||
|
||||
-- Set highlight on search
|
||||
|
|
@ -121,3 +122,6 @@ vim.diagnostic.config({
|
|||
-- current_line = true,
|
||||
-- },
|
||||
})
|
||||
|
||||
-- Disable log because it's slowing down Neovim
|
||||
vim.lsp.log_levels = "OFF"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue