1
0
Fork 0

Compare commits

...

8 commits

Author SHA1 Message Date
CRy386i
117f2a86a6 Fix trolling format file and mysterious themes 2025-12-20 03:46:36 +01:00
CRy386i
9b513b789c Again correct comment 2025-08-09 18:55:41 +03:00
cry386i
386b0c7fd3 Corrret a commets 2025-08-05 21:31:56 +03:00
cry386i
4e27af39cf Setting nvim theme apply and now it's not be break 2025-07-31 19:01:00 +03:00
CRy386i
3a2c83dfe2 return hotkeys for telescope.fzf 2025-07-21 05:41:14 +03:00
CRy386i
19925b92a9 remove which-key 2025-07-19 05:14:12 +03:00
CRy386i
82987a454c Oh my little refactor 2025-07-11 20:11:11 +03:00
CRy386i
ff494a0caa Add new plugins and refactor 2025-06-28 19:20:31 +03:00
3 changed files with 53 additions and 80 deletions

View file

@ -1,22 +0,0 @@
{
"aerial.nvim": { "branch": "master", "commit": "24ebacab5821107c50f628e8e7774f105c08fe9b" },
"cmp-buffer": { "branch": "main", "commit": "3022dbc9166796b644a841a02de8dd1cc1d311fa" },
"cmp-cmdline": { "branch": "main", "commit": "d250c63aa13ead745e3a40f61fdd3470efde3923" },
"cmp-nvim-lsp": { "branch": "main", "commit": "5af77f54de1b16c34b23cba810150689a3a90312" },
"cmp-nvim-lsp-signature-help": { "branch": "main", "commit": "3d8912ebeb56e5ae08ef0906e3a54de1c66b92f1" },
"cmp-path": { "branch": "main", "commit": "91ff86cd9c29299a64f968ebb45846c485725f23" },
"cmp-vsnip": { "branch": "main", "commit": "989a8a73c44e926199bfd05fa7a516d51f2d2752" },
"gruvbox": { "branch": "master", "commit": "f1ecde848f0cdba877acb0c740320568252cc482" },
"lazy.nvim": { "branch": "main", "commit": "31ddbea7c10b6920c9077b66c97951ca8682d5c8" },
"nvim-cmp": { "branch": "main", "commit": "ce16de5665c766f39c271705b17fff06f7bcb84f" },
"nvim-lspconfig": { "branch": "master", "commit": "b3014f2209503944f2714cf27c95591433a0c7d8" },
"nvim-treesitter": { "branch": "master", "commit": "ef267f0c285928ea3a0d3362a260a0728fd4a146" },
"plenary.nvim": { "branch": "master", "commit": "8aad4396840be7fc42896e3011751b7609ca4119" },
"telescope-fzf-native.nvim": { "branch": "main", "commit": "9ef21b2e6bb6ebeaf349a0781745549bbb870d27" },
"telescope.nvim": { "branch": "master", "commit": "6312868392331c9c0f22725041f1ec2bef57c751" },
"tokyonight.nvim": { "branch": "main", "commit": "9bf9ec53d5e87b025e2404069b71e7ebdc3a13e5" },
"vim-commentary": { "branch": "master", "commit": "c4b8f52cbb7142ec239494e5a2c4a512f92c4d07" },
"vim-fugitive": { "branch": "master", "commit": "dac8e5c2d85926df92672bf2afb4fc48656d96c7" },
"vim-polyglot": { "branch": "master", "commit": "bc8a81d3592dab86334f27d1d43c080ebf680d42" },
"vim-vsnip": { "branch": "master", "commit": "02a8e79295c9733434aab4e0e2b8c4b7cea9f3a9" }
}

View file

@ -27,7 +27,8 @@ vim.cmd [[autocmd BufEnter * set fo-=c fo-=r fo-=o]]
opt.encoding = "utf-8"
opt.fileencoding = "utf-8"
opt.ff = "unix"
opt.fileformats = "unix"
opt.fileformat = "unix"
-- Also work under ru
opt.langmap = "ФИСВУАПРШОЛДЬТЩЗЙКЫЕГМЦЧНЯ;ABCDEFGHIJKLMNOPQRSTUVWXYZ,фисвуапршолдьтщзйкыегмцчня;abcdefghijklmnopqrstuvwxyz"
@ -35,3 +36,29 @@ opt.langmap = "ФИСВУАПРШОЛДЬТЩЗЙКЫЕГМЦЧНЯ;ABCDEFGHIJKL
opt.colorcolumn = "120"
opt.mouse = ""
vim.filetype.add({
extension = {
vp = 'glsl',
fp = 'glsl',
gp = 'glsl',
vs = 'glsl',
fs = 'glsl',
gs = 'glsl',
tcs = 'glsl',
tes = 'glsl',
cs = 'glsl',
vert = 'glsl',
frag = 'glsl',
geom = 'glsl',
tess = 'glsl',
shd = 'glsl',
gls = 'glsl',
glsl = 'glsl',
rgen = 'glsl',
comp = 'glsl',
rchit = 'glsl',
rahit = 'glsl',
rmiss = 'glsl',
}
})

View file

@ -15,30 +15,21 @@ vim.opt.rtp:prepend(lazypath)
require('lazy').setup({
{ 'tpope/vim-commentary', },
{ 'tpope/vim-fugitive', },
{ 'sheerun/vim-polyglot',
init = function()
-- vim-polyglot confusingly registers *.comp both for perl and for glsl
vim.api.nvim_set_var('polyglot_disabled', {'perl'})
end,
},
{
'morhetz/gruvbox',
lazy = false,
priority = 1000,
config = function()
vim.opt.termguicolors = false
vim.opt.background = 'dark'
vim.g.gruvbox_italic = 1
vim.g.gruvbox_italic = true
vim.cmd([[colorscheme gruvbox]])
end,
},
{
"folke/tokyonight.nvim",
lazy = true,
-- config = function()
-- -- load the colorscheme here
-- vim.cmd([[colorscheme tokyonight]])
-- end,
},
-- {
-- "folke/tokyonight.nvim",
-- lazy = true
-- },
{ 'nvim-telescope/telescope-fzf-native.nvim',
build = 'cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Release && cmake --build build --config Release && cmake --install build --prefix build'
},
@ -49,20 +40,16 @@ require('lazy').setup({
local telescope = require('telescope')
telescope.setup{
-- defaults = {
-- }
extensions = {
fzf = {
fuzzy = true, -- false will only do exact matching
override_generic_sorter = true, -- override the generic sorter
override_file_sorter = true, -- override the file sorter
case_mode = "smart_case", -- or "ignore_case" or "respect_case"
-- the default case_mode is "smart_case"
-- the default case_mode is "smart_case"
}
}
}
--telescope.load_extension('fzy')
telescope.load_extension('fzf')
local builtin = require('telescope.builtin')
@ -77,7 +64,7 @@ require('lazy').setup({
build = ":TSUpdate",
config = function()
require("nvim-treesitter.configs").setup {
ensure_installed = { "c", "cpp", "pascal", "lua", "glsl", "yaml" },
ensure_installed = { 'c', 'cpp', 'lua' },
highlight = { enable = true, }
}
end
@ -85,11 +72,24 @@ require('lazy').setup({
{
'neovim/nvim-lspconfig',
config = function()
-- Setup language servers.
local lspconfig = require('lspconfig')
--lspconfig.clangd.setup {}
--lspconfig.neocmake.setup {}
-- Setup language servers
-- Server-specific settings. See `:help lspconfig-all`
vim.lsp.config('*', {
capabilities = {
textDocument = {
semanticTokens = {
multilineTokenSupport = true,
}
}
},
root_markers = { '.git' },
})
vim.lsp.config('clangd', {
cmd = { 'clangd', '--background-index', '--clang-tidy', '--log=verbose', '--header-insertion=never' },
filetypes = { 'c', 'cpp' }
})
vim.lsp.enable('clangd')
-- Global mappings.
-- See `:help vim.diagnostic.*` for documentation on any of the below functions
vim.keymap.set('n', '<space>e', vim.diagnostic.open_float)
@ -210,13 +210,6 @@ require('lazy').setup({
{ name = 'cmdline' }
})
})
-- Set up lspconfig.
local capabilities = require('cmp_nvim_lsp').default_capabilities()
-- TODO Replace <YOUR_LSP_SERVER> with each lsp server you've enabled.
--[[require('lspconfig')['clangd'].setup {
capabilities = capabilities
}--]]
end,
},
{
@ -237,28 +230,3 @@ require('lazy').setup({
}
})
vim.filetype.add({
extension = {
vp = 'glsl',
fp = 'glsl',
gp = 'glsl',
vs = 'glsl',
fs = 'glsl',
gs = 'glsl',
tcs = 'glsl',
tes = 'glsl',
cs = 'glsl',
vert = 'glsl',
frag = 'glsl',
geom = 'glsl',
tess = 'glsl',
shd = 'glsl',
gls = 'glsl',
glsl = 'glsl',
rgen = 'glsl',
comp = 'glsl',
rchit = 'glsl',
rahit = 'glsl',
rmiss = 'glsl',
}
})