aboutsummaryrefslogtreecommitdiffstats
path: root/init.lua
diff options
context:
space:
mode:
authorphilw <dscr@duck.com>2025-03-27 13:15:59 +0100
committerphilw <dscr@duck.com>2025-03-27 13:15:59 +0100
commit538ab5ec04495f983795e700bcdc1c9220e15111 (patch)
tree5dbf9ede61f03953a5a09f43fe5731f90b2ac49d /init.lua
parent27f1cf535c25e91667acf2c13db6c871ed28e0b0 (diff)
downloadneovim-538ab5ec04495f983795e700bcdc1c9220e15111.tar.gz
neovim-538ab5ec04495f983795e700bcdc1c9220e15111.zip
Update config for rust plugins
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua109
1 files changed, 52 insertions, 57 deletions
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
31option.signcolumn = "number" 31option.signcolumn = "number"
32option.autoindent = true 32option.autoindent = true
33option.clipboard = "unnamedplus" 33option.clipboard = "unnamedplus"
34option.termguicolors = true 34option.termguicolors = true
35option.fillchars = "eob: " 35option.fillchars = "eob: "
36option.autoindent = true 36option.autoindent = true
37option.lazyredraw = false 37option.lazyredraw = false
@@ -136,37 +136,50 @@ if not vim.loop.fs_stat(lazypath) then
136end 136end
137 137
138vim.opt.rtp:prepend(lazypath) 138vim.opt.rtp:prepend(lazypath)
139require("lazy").setup( 139
140require("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
182vim.cmd('colorscheme gruvbox')
170require("colorizer").setup() 183require("colorizer").setup()
171 184
172vim.api.nvim_create_autocmd( 185vim.api.nvim_create_autocmd(
@@ -178,36 +191,18 @@ vim.api.nvim_create_autocmd(
178 } 191 }
179) 192)
180 193
181local lsp_servers = { 194local 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
200require("mason").setup( 196require("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
212local server_maps = function(opts) 207local server_maps = function(opts)
213end 208end