added rust-tools - missing correct config
This commit is contained in:
parent
858ee9b7d3
commit
ca7c046589
2
init.lua
2
init.lua
|
@ -563,11 +563,9 @@ require('mason-lspconfig').setup()
|
||||||
-- If you want to override the default filetypes that your language server will attach to you can
|
-- If you want to override the default filetypes that your language server will attach to you can
|
||||||
-- define the property 'filetypes' to the map in question.
|
-- define the property 'filetypes' to the map in question.
|
||||||
local servers = {
|
local servers = {
|
||||||
--[[ removed because of rust-tools
|
|
||||||
rust_analyzer = {
|
rust_analyzer = {
|
||||||
filetypes = { 'rust' },
|
filetypes = { 'rust' },
|
||||||
},
|
},
|
||||||
]]--
|
|
||||||
|
|
||||||
lua_ls = {
|
lua_ls = {
|
||||||
Lua = {
|
Lua = {
|
||||||
|
|
|
@ -4,10 +4,29 @@
|
||||||
-- See the kickstart.nvim README for more information
|
-- See the kickstart.nvim README for more information
|
||||||
return {
|
return {
|
||||||
{
|
{
|
||||||
"rust-lang/rust.vim",
|
'rust-lang/rust.vim',
|
||||||
ft = "rust",
|
ft = 'rust',
|
||||||
init = function ()
|
init = function ()
|
||||||
vim.g.rustfmt_autosave = 1
|
vim.g.rustfmt_autosave = 1
|
||||||
end
|
end
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
'simrat39/rust-tools.nvim',
|
||||||
|
ft = 'rust',
|
||||||
|
dependencies = 'neovim/nvim-lspconfig',
|
||||||
|
--opts = function ()
|
||||||
|
-- return require 'custom.configs.rust-tools'
|
||||||
|
--end,
|
||||||
|
config = function(_, opts)
|
||||||
|
require('rust-tools').setup(opts)
|
||||||
|
end
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"mfussenegger/nvim-dap",
|
||||||
|
--[[
|
||||||
|
init = function()
|
||||||
|
require("core.utils").load_mappings("dap")
|
||||||
|
end
|
||||||
|
]]--
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue