mirror of
https://github.com/ivuorinen/dotfiles.git
synced 2026-02-04 14:48:53 +00:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 52a5f226e9 |
@@ -11,6 +11,13 @@ return {
|
|||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
-- Go development plugin for Vim
|
||||||
|
-- https://github.com/fatih/vim-go
|
||||||
|
{
|
||||||
|
'fatih/vim-go',
|
||||||
|
config = function() end,
|
||||||
|
},
|
||||||
|
|
||||||
-- Run your tests at the speed of thought
|
-- Run your tests at the speed of thought
|
||||||
-- https://github.com/vim-test/vim-test
|
-- https://github.com/vim-test/vim-test
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,13 +1,18 @@
|
|||||||
return {
|
return {
|
||||||
{
|
{
|
||||||
'stevearc/conform.nvim',
|
'stevearc/conform.nvim',
|
||||||
event = 'BufWritePre',
|
event = { 'BufReadPre', 'BufNewFile' },
|
||||||
config = function()
|
config = function()
|
||||||
local conform = require 'conform'
|
local conform = require 'conform'
|
||||||
|
|
||||||
conform.setup {
|
conform.setup {
|
||||||
formatters_by_ft = {
|
formatters_by_ft = {
|
||||||
|
bash = { 'shfmt' },
|
||||||
|
go = { 'golangci-lint' },
|
||||||
lua = { 'stylua' },
|
lua = { 'stylua' },
|
||||||
|
sh = { 'shfmt' },
|
||||||
|
ansible = { 'ansible-lint' },
|
||||||
|
docker = { 'hadolint' },
|
||||||
},
|
},
|
||||||
format_on_save = function(bufnr)
|
format_on_save = function(bufnr)
|
||||||
-- Disable autoformat for files in a certain paths
|
-- Disable autoformat for files in a certain paths
|
||||||
@@ -20,6 +25,7 @@ return {
|
|||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
lsp_fallback = not disable_lsp[vim.bo[bufnr].filetype],
|
lsp_fallback = not disable_lsp[vim.bo[bufnr].filetype],
|
||||||
|
async = false,
|
||||||
timeout_ms = 500,
|
timeout_ms = 500,
|
||||||
}
|
}
|
||||||
end,
|
end,
|
||||||
@@ -63,4 +69,8 @@ return {
|
|||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
'gpanders/editorconfig.nvim',
|
||||||
|
lazy = false,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,44 +1,4 @@
|
|||||||
return {
|
return {
|
||||||
-- A collection of small QoL plugins for Neovim
|
|
||||||
-- https://github.com/folke/snacks.nvim
|
|
||||||
{
|
|
||||||
---@module 'snacks'
|
|
||||||
'folke/snacks.nvim',
|
|
||||||
priority = 1000,
|
|
||||||
lazy = false,
|
|
||||||
---@type snacks.Config
|
|
||||||
opts = {
|
|
||||||
bigfile = { enabled = true },
|
|
||||||
input = { enabled = true },
|
|
||||||
notifier = {
|
|
||||||
enabled = true,
|
|
||||||
timeout = 3000,
|
|
||||||
},
|
|
||||||
gitbrowse = { enabled = true },
|
|
||||||
quickfile = { enabled = true },
|
|
||||||
statuscolumn = {
|
|
||||||
enabled = true,
|
|
||||||
left = { 'mark', 'sign' }, -- priority of signs on the left (high to low)
|
|
||||||
right = { 'fold', 'git' }, -- priority of signs on the right (high to low)
|
|
||||||
folds = {
|
|
||||||
open = true, -- show open fold icons
|
|
||||||
git_hl = true, -- use Git Signs hl for fold icons
|
|
||||||
},
|
|
||||||
git = {
|
|
||||||
-- patterns to match Git signs
|
|
||||||
patterns = { 'GitSign', 'MiniDiffSign' },
|
|
||||||
},
|
|
||||||
refresh = 50, -- refresh at most every 50ms
|
|
||||||
},
|
|
||||||
words = { enabled = true },
|
|
||||||
styles = {
|
|
||||||
notification = {
|
|
||||||
wo = { wrap = true }, -- Wrap notifications
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
|
|
||||||
-- Highly experimental plugin that completely
|
-- Highly experimental plugin that completely
|
||||||
-- replaces the UI for messages, cmdline and the popupmenu.
|
-- replaces the UI for messages, cmdline and the popupmenu.
|
||||||
-- https://github.com/folke/noice.nvim
|
-- https://github.com/folke/noice.nvim
|
||||||
|
|||||||
Reference in New Issue
Block a user