Compare commits

..

3 commits

Author SHA1 Message Date
Imbus
3ae2dac658 Configuring some common formatters 2025-01-19 19:50:38 +01:00
Imbus
6e5d407f7b Using gmake instead of make for *BSD compat 2025-01-19 19:50:25 +01:00
Imbus
d5ec1083d3 Porting to new API 2025-01-19 19:50:10 +01:00
3 changed files with 8 additions and 3 deletions

View file

@ -19,7 +19,7 @@ vim.g.maplocalleader = ' '
-- For a full summary of this table, run ":lua vim.inspect(vim.g.os_uname)"
-- Shows up as undefined but executes and behaves flawlessly as of 2024-08-18
---@diagnostic disable-next-line: undefined-field
vim.g.os_uname = vim.loop.os_uname()
vim.g.os_uname = vim.uv.os_uname()
vim.g.sysname = vim.g.os_uname.sysname -- "Linux, FreeBSD, ..."
vim.g.arch = vim.g.os_uname.machine -- "x86_64, ..."

View file

@ -31,7 +31,12 @@ return { -- Autoformat
--
-- You can use a sub-list to tell conform to run *until* a formatter
-- is found.
nu = { 'nufmt' },
bash = { 'shfmt' },
zsh = { 'shfmt' },
rust = { "rustfmt", lsp_format = "fallback" },
javascript = { { 'prettierd', 'prettier' } },
html = { { 'prettierd', 'prettier' } },
java = { 'clang-format' },
},
},

View file

@ -9,12 +9,12 @@ return { -- Fuzzy Finder (files, lsp, etc)
-- `build` is used to run some command when the plugin is installed/updated.
-- This is only run then, not every time Neovim starts up.
build = 'make',
build = 'gmake',
-- `cond` is a condition used to determine whether this plugin should be
-- installed and loaded.
cond = function()
return vim.fn.executable 'make' == 1
return vim.fn.executable 'gmake' == 1
end,
},
{ 'nvim-telescope/telescope-ui-select.nvim' },