add .proto files support for neovim

This commit is contained in:
Buliway 2025-02-06 05:07:50 +03:00
parent 4ea657c408
commit cf19589a98
4 changed files with 22 additions and 1 deletions

View file

@ -28,6 +28,7 @@
TERM = "alacritty"; TERM = "alacritty";
QT_QPA_PLATFORMTHEME = "qt6ct"; QT_QPA_PLATFORMTHEME = "qt6ct";
# QT_STYLE_OVERRIDE = "kvantum"; # QT_STYLE_OVERRIDE = "kvantum";
PATH = "$PATH:${config.home.homeDirectory}/go/bin";
}; };
stateVersion = "24.05"; # Don't change it stateVersion = "24.05"; # Don't change it

View file

@ -209,6 +209,13 @@
tailwindcss-language-server # Tailwind LSP tailwindcss-language-server # Tailwind LSP
# tailwindcss # tailwindcss
# Protobuf
# protols # LSP
buf # LSP
protobuf
protoc-gen-go
protoc-gen-go-grpc
# Other # Other
hugo # Для моего блога hugo # Для моего блога
yaml-language-server # YAML LSP yaml-language-server # YAML LSP
@ -281,6 +288,7 @@
lm_sensors # Сенсоры lm_sensors # Сенсоры
httpie # interacting with APIs & HTTP servers httpie # interacting with APIs & HTTP servers
jq # Cli JSON processor jq # Cli JSON processor
miller # Like awk, sed, cut, join, and sort for data formats such as CSV, TSV, JSON, JSON Lines, and positionally-indexed
# htmlq # Как jq, но для html. Извлекать конкретные элементы из html # htmlq # Как jq, но для html. Извлекать конкретные элементы из html
# mkvtoolnix-cli # Cross-platform tools for Matroska # mkvtoolnix-cli # Cross-platform tools for Matroska

View file

@ -265,7 +265,9 @@ return {
-- }; -- };
-- } -- }
-- } -- }
lspconfig.clangd.setup {} lspconfig.clangd.setup {
filetypes = { 'c', 'cpp', 'objc', 'objcpp', 'cuda' }, -- Удалил "proto"
}
lspconfig.cmake.setup {} lspconfig.cmake.setup {}
-- Python -- Python
@ -293,6 +295,8 @@ return {
lspconfig.taplo.setup {} lspconfig.taplo.setup {}
lspconfig.vimls.setup {} lspconfig.vimls.setup {}
lspconfig.yamlls.setup {} lspconfig.yamlls.setup {}
-- lspconfig.protols.setup {}
lspconfig.buf_ls.setup {}
-- Ensure the servers and tools above are installed -- Ensure the servers and tools above are installed
-- To check the current status of installed tools and/or manually install -- To check the current status of installed tools and/or manually install

View file

@ -30,6 +30,14 @@ vim.cmd [[
autocmd FileType yaml setlocal shiftwidth=4 tabstop=4 softtabstop=4 expandtab autocmd FileType yaml setlocal shiftwidth=4 tabstop=4 softtabstop=4 expandtab
]] ]]
-- Комментировать .proto код биндом
vim.api.nvim_create_autocmd('FileType', {
pattern = 'proto',
callback = function()
vim.bo.commentstring = '// %s'
end,
})
-- Enable mouse mode, can be useful for resizing splits for example! -- Enable mouse mode, can be useful for resizing splits for example!
vim.opt.mouse = 'a' vim.opt.mouse = 'a'