Merge pull request #1 from glubo/gnomicka

feat: changes from gnomicka
This commit is contained in:
Petr Sýkora 2025-02-10 10:53:39 +01:00 committed by GitHub
commit f2374a3d4c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 28 additions and 3 deletions

View File

@ -100,6 +100,7 @@ vim.g.have_nerd_font = false
-- Make line numbers default -- Make line numbers default
vim.opt.number = true vim.opt.number = true
vim.wo.relativenumber = true
-- You can also add relative line numbers, to help with jumping. -- You can also add relative line numbers, to help with jumping.
-- Experiment for yourself to see if you like it! -- Experiment for yourself to see if you like it!
-- vim.opt.relativenumber = true -- vim.opt.relativenumber = true
@ -114,9 +115,9 @@ vim.opt.showmode = false
-- Schedule the setting after `UiEnter` because it can increase startup-time. -- Schedule the setting after `UiEnter` because it can increase startup-time.
-- Remove this option if you want your OS clipboard to remain independent. -- Remove this option if you want your OS clipboard to remain independent.
-- See `:help 'clipboard'` -- See `:help 'clipboard'`
vim.schedule(function() -- vim.schedule(function()
vim.opt.clipboard = 'unnamedplus' -- vim.opt.clipboard = 'unnamedplus'
end) -- end)
-- Enable break indent -- Enable break indent
vim.opt.breakindent = true vim.opt.breakindent = true
@ -229,6 +230,9 @@ vim.opt.rtp:prepend(lazypath)
require('lazy').setup({ require('lazy').setup({
-- NOTE: Plugins can be added with a link (or for a github repo: 'owner/repo' link). -- NOTE: Plugins can be added with a link (or for a github repo: 'owner/repo' link).
'tpope/vim-sleuth', -- Detect tabstop and shiftwidth automatically 'tpope/vim-sleuth', -- Detect tabstop and shiftwidth automatically
-- 'phha/zenburn.nvim', -- not great
'tomasiser/vim-code-dark',
'ribru17/bamboo.nvim',
-- NOTE: Plugins can also be added by using a table, -- NOTE: Plugins can also be added by using a table,
-- with the first argument being the link and the following -- with the first argument being the link and the following
@ -255,6 +259,20 @@ require('lazy').setup({
}, },
}, },
{
'NeogitOrg/neogit',
dependencies = {
'nvim-lua/plenary.nvim', -- required
'sindrets/diffview.nvim', -- optional - Diff integration
-- Only one of these is needed.
'nvim-telescope/telescope.nvim', -- optional
'ibhagwan/fzf-lua', -- optional
'echasnovski/mini.pick', -- optional
},
config = true,
},
-- NOTE: Plugins can also be configured to run Lua code when they are loaded. -- NOTE: Plugins can also be configured to run Lua code when they are loaded.
-- --
-- This is often very useful to both group configuration, as well as handle -- This is often very useful to both group configuration, as well as handle
@ -628,6 +646,8 @@ require('lazy').setup({
-- But for many setups, the LSP (`ts_ls`) will work just fine -- But for many setups, the LSP (`ts_ls`) will work just fine
-- ts_ls = {}, -- ts_ls = {},
-- --
-- kotlin_language_server = {},
vacuum = {},
lua_ls = { lua_ls = {
-- cmd = { ... }, -- cmd = { ... },

5
load-oapi.lua Normal file
View File

@ -0,0 +1,5 @@
vim.lsp.start {
cmd = { 'openapi-language-server', '-testdata', '/tmp/xyz.txt' },
filetypes = { 'yaml.openapi', 'yaml.oa', 'yaml' },
root_dir = vim.fn.getcwd(),
}