diff options
| author | philw <dscr@duck.com> | 2025-03-27 13:15:59 +0100 |
|---|---|---|
| committer | philw <dscr@duck.com> | 2025-03-27 13:15:59 +0100 |
| commit | 538ab5ec04495f983795e700bcdc1c9220e15111 (patch) | |
| tree | 5dbf9ede61f03953a5a09f43fe5731f90b2ac49d /init.lua | |
| parent | 27f1cf535c25e91667acf2c13db6c871ed28e0b0 (diff) | |
| download | neovim-538ab5ec04495f983795e700bcdc1c9220e15111.tar.gz neovim-538ab5ec04495f983795e700bcdc1c9220e15111.zip | |
Update config for rust plugins
Diffstat (limited to '')
| -rw-r--r-- | init.lua | 109 |
1 files changed, 52 insertions, 57 deletions
| @@ -31,7 +31,7 @@ option.laststatus = 0 | |||
| 31 | option.signcolumn = "number" | 31 | option.signcolumn = "number" |
| 32 | option.autoindent = true | 32 | option.autoindent = true |
| 33 | option.clipboard = "unnamedplus" | 33 | option.clipboard = "unnamedplus" |
| 34 | option.termguicolors = true | 34 | option.termguicolors = true |
| 35 | option.fillchars = "eob: " | 35 | option.fillchars = "eob: " |
| 36 | option.autoindent = true | 36 | option.autoindent = true |
| 37 | option.lazyredraw = false | 37 | option.lazyredraw = false |
| @@ -136,37 +136,50 @@ if not vim.loop.fs_stat(lazypath) then | |||
| 136 | end | 136 | end |
| 137 | 137 | ||
| 138 | vim.opt.rtp:prepend(lazypath) | 138 | vim.opt.rtp:prepend(lazypath) |
| 139 | require("lazy").setup( | 139 | |
| 140 | require("lazy").setup({ | ||
| 140 | { | 141 | { |
| 141 | {"airblade/vim-gitgutter"}, | 142 | 'mrcjkb/rustaceanvim', |
| 142 | {"norcalli/nvim-colorizer.lua"}, | 143 | version = '^5', |
| 143 | {"nvim-treesitter/nvim-treesitter"}, | 144 | lazy = false, |
| 144 | { | 145 | }, |
| 145 | "neovim/nvim-lspconfig", | 146 | { 'rust-lang/rust.vim' }, |
| 146 | lazy = false, | 147 | { |
| 147 | dependencies = { | 148 | "ellisonleao/gruvbox.nvim", |
| 148 | {"ms-jpq/coq_nvim", branch = "coq"}, | 149 | priority = 1000, |
| 149 | {"ms-jpq/coq.artifacts", branch = "artifacts"}, | 150 | config = true, |
| 150 | {"williamboman/mason.nvim"}, | 151 | opts = {}, |
| 151 | {"williamboman/mason-lspconfig.nvim"} | 152 | }, |
| 152 | }, | 153 | { "airblade/vim-gitgutter" }, |
| 153 | init = function() | 154 | { "norcalli/nvim-colorizer.lua" }, |
| 154 | vim.g.coq_settings = {auto_start = "shut-up"} | 155 | { "nvim-treesitter/nvim-treesitter" }, |
| 155 | end | 156 | { |
| 156 | }, | 157 | "neovim/nvim-lspconfig", |
| 157 | { | 158 | lazy = false, |
| 158 | "nvim-telescope/telescope.nvim", | 159 | dependencies = { |
| 159 | lazy = false, | 160 | { "ms-jpq/coq_nvim", branch = "coq" }, |
| 160 | tag = "0.1.5", | 161 | { "ms-jpq/coq.artifacts", branch = "artifacts" }, |
| 161 | dependencies = {"nvim-lua/plenary.nvim"} | 162 | { "williamboman/mason.nvim" }, |
| 163 | { "williamboman/mason-lspconfig.nvim" } | ||
| 162 | }, | 164 | }, |
| 163 | { | 165 | init = function() |
| 164 | "nvim-telescope/telescope-fzf-native.nvim", | 166 | vim.g.coq_settings = { auto_start = "shut-up" } |
| 165 | lazy = true, | 167 | end |
| 166 | build = "cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Release && cmake --build build --config Release && cmake --install build --prefix build", | 168 | }, |
| 167 | } | 169 | { |
| 168 | } | 170 | "nvim-telescope/telescope.nvim", |
| 169 | ) | 171 | lazy = false, |
| 172 | tag = "0.1.5", | ||
| 173 | dependencies = { "nvim-lua/plenary.nvim" } | ||
| 174 | }, | ||
| 175 | { | ||
| 176 | "nvim-telescope/telescope-fzf-native.nvim", | ||
| 177 | lazy = true, | ||
| 178 | build = "cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Release && cmake --build build --config Release && cmake --install build --prefix build", | ||
| 179 | }, | ||
| 180 | }) | ||
| 181 | |||
| 182 | vim.cmd('colorscheme gruvbox') | ||
| 170 | require("colorizer").setup() | 183 | require("colorizer").setup() |
| 171 | 184 | ||
| 172 | vim.api.nvim_create_autocmd( | 185 | vim.api.nvim_create_autocmd( |
| @@ -178,36 +191,18 @@ vim.api.nvim_create_autocmd( | |||
| 178 | } | 191 | } |
| 179 | ) | 192 | ) |
| 180 | 193 | ||
| 181 | local lsp_servers = { | 194 | local lsp_servers = {} |
| 182 | rust_analyzer = { | ||
| 183 | imports = { | ||
| 184 | granularity = { | ||
| 185 | group = "module" | ||
| 186 | }, | ||
| 187 | prefix = "self" | ||
| 188 | }, | ||
| 189 | cargo = { | ||
| 190 | buildScripts = { | ||
| 191 | enable = true | ||
| 192 | } | ||
| 193 | }, | ||
| 194 | procMacro = { | ||
| 195 | enable = true | ||
| 196 | } | ||
| 197 | } | ||
| 198 | } | ||
| 199 | 195 | ||
| 200 | require("mason").setup( | 196 | require("mason").setup({ |
| 201 | { | 197 | ui = { |
| 202 | ui = { | 198 | icons = { |
| 203 | icons = { | 199 | package_installed = "✓", |
| 204 | package_installed = "✓", | 200 | package_pending = "➜", |
| 205 | package_pending = "➜", | 201 | package_uninstalled = "✗" |
| 206 | package_uninstalled = "✗" | ||
| 207 | } | ||
| 208 | } | 202 | } |
| 209 | } | 203 | } |
| 210 | ) | 204 | }) |
| 205 | |||
| 211 | 206 | ||
| 212 | local server_maps = function(opts) | 207 | local server_maps = function(opts) |
| 213 | end | 208 | end |
