feat(mise): add r statistical program

Also, add proper language server in neovim.
This commit is contained in:
João Paulo Dubas 2024-06-03 11:02:31 +00:00
parent 39c4c9bf2d
commit f2d96625d0
3 changed files with 8 additions and 5 deletions

View File

@ -208,6 +208,7 @@ RUN ${LOCAL_BIN_HOME}/mise plugins install --force --yes \
lua \
luajit \
poetry \
r \
ripgrep \
rust \
starship \

View File

@ -23,6 +23,7 @@ luajit = "2.0.5--2.4.4"
node = "22.1.0"
poetry = "1.8.3"
python = "3.12.3"
r = "4.4.0"
ripgrep = "14.1.0"
rust = "1.78.0"
starship = "1.18.2"

View File

@ -1,5 +1,5 @@
diff --git a/init.lua b/init.lua
index 88658ef..5887aaa 100644
index 88658ef..b2e4e40 100644
--- a/init.lua
+++ b/init.lua
@@ -91,7 +91,7 @@ vim.g.mapleader = ' '
@ -68,11 +68,12 @@ index 88658ef..5887aaa 100644
lua_ls = {
-- cmd = {...},
-- filetypes = { ...},
@@ -592,6 +622,32 @@ require('lazy').setup({
@@ -592,6 +622,33 @@ require('lazy').setup({
},
},
},
+ pyright = {},
+ r_language_server = {},
+ templ = {},
+ terraformls = {},
+ tsserver = {},
@ -101,7 +102,7 @@ index 88658ef..5887aaa 100644
}
-- Ensure the servers and tools above are installed
@@ -618,6 +674,33 @@ require('lazy').setup({
@@ -618,6 +675,33 @@ require('lazy').setup({
-- by the server configuration above. Useful when disabling
-- certain features of an LSP (for example, turning off formatting for tsserver)
server.capabilities = vim.tbl_deep_extend('force', {}, capabilities, server.capabilities or {})
@ -135,7 +136,7 @@ index 88658ef..5887aaa 100644
require('lspconfig')[server_name].setup(server)
end,
},
@@ -835,7 +918,38 @@ require('lazy').setup({
@@ -835,7 +919,38 @@ require('lazy').setup({
'nvim-treesitter/nvim-treesitter',
build = ':TSUpdate',
opts = {
@ -175,7 +176,7 @@ index 88658ef..5887aaa 100644
-- Autoinstall languages that are not installed
auto_install = true,
highlight = {
@@ -874,18 +988,18 @@ require('lazy').setup({
@@ -874,18 +989,18 @@ require('lazy').setup({
-- Uncomment any of the lines below to enable them (you will need to restart nvim).
--
-- require 'kickstart.plugins.debug',