diff --git a/after/plugin/colors.lua b/after/plugin/colors.lua index 6a32681..24374ec 100644 --- a/after/plugin/colors.lua +++ b/after/plugin/colors.lua @@ -1,6 +1,10 @@ -function ColorMyPencils(color) + +require('onedark').setup { + style = 'warmer' +} +require('onedark').load() + +function theme_solarized(color) color = color or "solarized" vim.cmd.colorscheme(color) end - -ColorMyPencils() diff --git a/after/plugin/lsp.lua b/after/plugin/lsp.lua index 72bb9d5..2964e8a 100644 --- a/after/plugin/lsp.lua +++ b/after/plugin/lsp.lua @@ -102,14 +102,23 @@ rt.setup({ -- to enable rust-analyzer settings visit: -- https://github.com/rust-analyzer/rust-analyzer/blob/master/docs/user/generated_config.adoc ["rust-analyzer"] = { - -- enable clippy on save + diagnostics = { + enable = true, + experimental = { + enable = true + } + }, + -- -- enable clippy on save checkOnSave = { command = "clippy", }, cargo = { -- to enable include! macro being read -- loadOutDirsFromCheck = true, - -- buildScripts = true, + buildScripts = { + -- to enable build scripts being read + enable = true + }, }, }, }, diff --git a/lua/talksik/packer.lua b/lua/talksik/packer.lua index 60d4d7e..29993ca 100644 --- a/lua/talksik/packer.lua +++ b/lua/talksik/packer.lua @@ -69,6 +69,8 @@ return require('packer').startup(function(use) use("ThePrimeagen/harpoon") + -- themes use('shaunsingh/solarized.nvim') + use('navarasu/onedark.nvim') end) diff --git a/plugin/packer_compiled.lua b/plugin/packer_compiled.lua index e2fc9ed..8599cf4 100644 --- a/plugin/packer_compiled.lua +++ b/plugin/packer_compiled.lua @@ -185,6 +185,11 @@ _G.packer_plugins = { path = "/home/talksik-fedora/.local/share/nvim/site/pack/packer/start/nvim-web-devicons", url = "https://github.com/nvim-tree/nvim-web-devicons" }, + ["onedark.nvim"] = { + loaded = true, + path = "/home/talksik-fedora/.local/share/nvim/site/pack/packer/start/onedark.nvim", + url = "https://github.com/navarasu/onedark.nvim" + }, ["packer.nvim"] = { loaded = true, path = "/home/talksik-fedora/.local/share/nvim/site/pack/packer/start/packer.nvim",