add .proto files support for neovim
This commit is contained in:
parent
4ea657c408
commit
cf19589a98
4 changed files with 22 additions and 1 deletions
|
|
@ -28,6 +28,7 @@
|
|||
TERM = "alacritty";
|
||||
QT_QPA_PLATFORMTHEME = "qt6ct";
|
||||
# QT_STYLE_OVERRIDE = "kvantum";
|
||||
PATH = "$PATH:${config.home.homeDirectory}/go/bin";
|
||||
};
|
||||
|
||||
stateVersion = "24.05"; # Don't change it
|
||||
|
|
|
|||
|
|
@ -209,6 +209,13 @@
|
|||
tailwindcss-language-server # Tailwind LSP
|
||||
# tailwindcss
|
||||
|
||||
# Protobuf
|
||||
# protols # LSP
|
||||
buf # LSP
|
||||
protobuf
|
||||
protoc-gen-go
|
||||
protoc-gen-go-grpc
|
||||
|
||||
# Other
|
||||
hugo # Для моего блога
|
||||
yaml-language-server # YAML LSP
|
||||
|
|
@ -281,6 +288,7 @@
|
|||
lm_sensors # Сенсоры
|
||||
httpie # interacting with APIs & HTTP servers
|
||||
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
|
||||
# mkvtoolnix-cli # Cross-platform tools for Matroska
|
||||
|
||||
|
|
|
|||
|
|
@ -265,7 +265,9 @@ return {
|
|||
-- };
|
||||
-- }
|
||||
-- }
|
||||
lspconfig.clangd.setup {}
|
||||
lspconfig.clangd.setup {
|
||||
filetypes = { 'c', 'cpp', 'objc', 'objcpp', 'cuda' }, -- Удалил "proto"
|
||||
}
|
||||
lspconfig.cmake.setup {}
|
||||
|
||||
-- Python
|
||||
|
|
@ -293,6 +295,8 @@ return {
|
|||
lspconfig.taplo.setup {}
|
||||
lspconfig.vimls.setup {}
|
||||
lspconfig.yamlls.setup {}
|
||||
-- lspconfig.protols.setup {}
|
||||
lspconfig.buf_ls.setup {}
|
||||
|
||||
-- Ensure the servers and tools above are installed
|
||||
-- To check the current status of installed tools and/or manually install
|
||||
|
|
|
|||
|
|
@ -30,6 +30,14 @@ vim.cmd [[
|
|||
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!
|
||||
vim.opt.mouse = 'a'
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue