Skip to content

Commit

Permalink
simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
jmbuhr committed Jun 29, 2024
1 parent d817c7e commit 03492ee
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 21 deletions.
6 changes: 3 additions & 3 deletions init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
-- (may be outdated with newer versions of the plugins,
-- check for yourself if you're interested in using them)

require("config.global")
require("config.lazy")
require("config.autocommands")
require 'config.global'
require 'config.lazy'
require 'config.autocommands'
9 changes: 7 additions & 2 deletions lua/config/keymap.lua
Original file line number Diff line number Diff line change
Expand Up @@ -352,14 +352,19 @@ wk.register({
e = { vim.diagnostic.open_float, 'diagnostics (show hover [e]rror)' },
d = {
name = '[d]iagnostics',
d = { vim.diagnostic.disable, '[d]isable' },
d = {
function()
vim.diagnostic.enable(false)
end,
'[d]isable',
},
e = { vim.diagnostic.enable, '[e]nable' },
},
g = { ':Neogen<cr>', 'neo[g]en docstring' },
},
o = {
name = '[o]tter & c[o]de',
a = { require('otter').dev_setup, 'otter [a]ctivate' },
a = { require('otter').activate, 'otter [a]ctivate' },
d = { require('otter').deactivate, 'otter [d]eactivate' },
c = { 'O# %%<cr>', 'magic [c]omment code chunk # %%' },
r = { insert_r_chunk, '[r] code chunk' },
Expand Down
16 changes: 2 additions & 14 deletions lua/plugins/lsp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,14 @@ return {

-- for lsp features in code cells / embedded code
'jmbuhr/otter.nvim',
dev = true,
dev = false,
dependencies = {
{
'neovim/nvim-lspconfig',
'nvim-treesitter/nvim-treesitter',
'hrsh7th/nvim-cmp',
},
},
opts = {
lsp = {
hover = {
border = require('misc.style').border,
},
},
buffers = {
set_filetype = true,
write_to_disk = false,
},
handle_leading_whitespace = true,
},
opts = {},
},

{
Expand Down
4 changes: 2 additions & 2 deletions lua/plugins/quarto.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ return {
-- for complete functionality (language features)
'quarto-dev/quarto-nvim',
ft = { 'quarto' },
dev = true,
dev = false,
opts = {
lspFeatures = {
languages = { 'r', 'python', 'julia', 'bash', 'lua', 'html', 'dot', 'javascript', 'typescript', 'ojs' },
languages = { 'r', 'python', 'julia', 'bash', 'lua', 'html', 'dot', 'javascript', 'typescript', 'ojs', 'lua' },
},
codeRunner = {
enabled = true,
Expand Down

0 comments on commit 03492ee

Please sign in to comment.