diff options
| author | Charles Cabergs <me@cacharle.xyz> | 2021-12-01 18:06:28 +0100 |
|---|---|---|
| committer | Charles Cabergs <me@cacharle.xyz> | 2021-12-01 18:06:28 +0100 |
| commit | 871f5a843847e5a3103646ecdfb300a0250e486f (patch) | |
| tree | 6367e9fd699b7c1c434ff5333a6fab27e5cd8eb4 | |
| parent | 3dc9c82a978dbc61099bcfd28639f72665b4d328 (diff) | |
| download | dotfiles-871f5a843847e5a3103646ecdfb300a0250e486f.tar.gz dotfiles-871f5a843847e5a3103646ecdfb300a0250e486f.tar.bz2 dotfiles-871f5a843847e5a3103646ecdfb300a0250e486f.zip | |
Added rust lsp to neovim
| -rw-r--r-- | config/alacritty/alacritty.linux.yml | 1 | ||||
| -rw-r--r-- | config/nvim/lua/plugins.lua | 31 |
2 files changed, 29 insertions, 3 deletions
diff --git a/config/alacritty/alacritty.linux.yml b/config/alacritty/alacritty.linux.yml index d30521e..7ca4f80 100644 --- a/config/alacritty/alacritty.linux.yml +++ b/config/alacritty/alacritty.linux.yml @@ -4,6 +4,7 @@ env: TERM: xterm-256color + WINIT_X11_SCALE_FACTOR: '1' # font font: diff --git a/config/nvim/lua/plugins.lua b/config/nvim/lua/plugins.lua index 7356e43..4cd9db0 100644 --- a/config/nvim/lua/plugins.lua +++ b/config/nvim/lua/plugins.lua @@ -7,18 +7,40 @@ return require('packer').startup(function() use 'FooSoft/vim-argwrap' -- Put arguments on multiple lines use 'tpope/vim-eunuch' -- basic commands on current file (Rename/Remove) use 'romainl/vim-cool' -- only highlight search matches when searching - use 'neovim/nvim-lspconfig' -- nvim lsp configuration + -- nvim lsp configuration + use { + 'neovim/nvim-lspconfig', + config = function() + end + } + + -- rust lsp (needs rust-analyser) + use { + 'simrat39/rust-tools.nvim', + requires = {'neovim/nvim-lspconfig'}, + ft = {'rust'}, + config = function() + require('rust-tools').setup { + tools = { + inlay_hints = { + -- only_current_line = true, + }, + }, + } + end + } + + -- comment text objects use { 'numToStr/Comment.nvim', config = function() require('Comment').setup() end } - -- color scheme use { - 'ellisonleao/gruvbox.nvim', + 'ellisonleao/gruvbox.nvim', requires = {'rktjmp/lush.nvim'}, config = function() vim.opt.termguicolors = true @@ -105,4 +127,7 @@ return require('packer').startup(function() } end } + + use { 'nvim-treesitter/playground', opt = true, cmd = { 'TSPlaygroundToggle' } } + use { '~/git/argwrap.nvim', opt = true } end) |
