From 538ab5ec04495f983795e700bcdc1c9220e15111 Mon Sep 17 00:00:00 2001 From: philw Date: Thu, 27 Mar 2025 13:15:59 +0100 Subject: Update config for rust plugins --- init.lua | 109 ++++++++++++++++++++++++++++++--------------------------------- 1 file changed, 52 insertions(+), 57 deletions(-) (limited to 'init.lua') diff --git a/init.lua b/init.lua index b1e8359..5e2f12b 100644 --- a/init.lua +++ b/init.lua @@ -31,7 +31,7 @@ option.laststatus = 0 option.signcolumn = "number" option.autoindent = true option.clipboard = "unnamedplus" -option.termguicolors = true +option.termguicolors = true option.fillchars = "eob: " option.autoindent = true option.lazyredraw = false @@ -136,37 +136,50 @@ if not vim.loop.fs_stat(lazypath) then end vim.opt.rtp:prepend(lazypath) -require("lazy").setup( + +require("lazy").setup({ { - {"airblade/vim-gitgutter"}, - {"norcalli/nvim-colorizer.lua"}, - {"nvim-treesitter/nvim-treesitter"}, - { - "neovim/nvim-lspconfig", - lazy = false, - dependencies = { - {"ms-jpq/coq_nvim", branch = "coq"}, - {"ms-jpq/coq.artifacts", branch = "artifacts"}, - {"williamboman/mason.nvim"}, - {"williamboman/mason-lspconfig.nvim"} - }, - init = function() - vim.g.coq_settings = {auto_start = "shut-up"} - end - }, - { - "nvim-telescope/telescope.nvim", - lazy = false, - tag = "0.1.5", - dependencies = {"nvim-lua/plenary.nvim"} + 'mrcjkb/rustaceanvim', + version = '^5', + lazy = false, + }, + { 'rust-lang/rust.vim' }, + { + "ellisonleao/gruvbox.nvim", + priority = 1000, + config = true, + opts = {}, + }, + { "airblade/vim-gitgutter" }, + { "norcalli/nvim-colorizer.lua" }, + { "nvim-treesitter/nvim-treesitter" }, + { + "neovim/nvim-lspconfig", + lazy = false, + dependencies = { + { "ms-jpq/coq_nvim", branch = "coq" }, + { "ms-jpq/coq.artifacts", branch = "artifacts" }, + { "williamboman/mason.nvim" }, + { "williamboman/mason-lspconfig.nvim" } }, - { - "nvim-telescope/telescope-fzf-native.nvim", - lazy = true, - build = "cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Release && cmake --build build --config Release && cmake --install build --prefix build", - } - } -) + init = function() + vim.g.coq_settings = { auto_start = "shut-up" } + end + }, + { + "nvim-telescope/telescope.nvim", + lazy = false, + tag = "0.1.5", + dependencies = { "nvim-lua/plenary.nvim" } + }, + { + "nvim-telescope/telescope-fzf-native.nvim", + lazy = true, + build = "cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Release && cmake --build build --config Release && cmake --install build --prefix build", + }, +}) + +vim.cmd('colorscheme gruvbox') require("colorizer").setup() vim.api.nvim_create_autocmd( @@ -178,36 +191,18 @@ vim.api.nvim_create_autocmd( } ) -local lsp_servers = { - rust_analyzer = { - imports = { - granularity = { - group = "module" - }, - prefix = "self" - }, - cargo = { - buildScripts = { - enable = true - } - }, - procMacro = { - enable = true - } - } -} +local lsp_servers = {} -require("mason").setup( - { - ui = { - icons = { - package_installed = "✓", - package_pending = "➜", - package_uninstalled = "✗" - } +require("mason").setup({ + ui = { + icons = { + package_installed = "✓", + package_pending = "➜", + package_uninstalled = "✗" } } -) +}) + local server_maps = function(opts) end -- cgit v1.2.3